#242785#242785

#242785 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.153 H 273.4°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#242785
RGBrgb(36, 39, 133)
HSLhsl(238, 57%, 33%)
HSVhsv(238, 73%, 52%)
CMYKcmyk(72.9%, 70.7%, 0%, 47.8%)
CIE-LABlab(22.01, 31.69, -52.82)
CIE-LCHlch(22.01, 61.60, 300.97°)
OKLaboklab(34.08% 0.0091 -0.1527)
OKLCHoklch(34.08% 0.153 273.4)
XYZxyz(5.6853, 3.5190, 22.5654)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242785 #858224
analogous
#245785 #242785 #512485
triadic
#242785 #852427 #278524
tetradic
#242785 #852457 #858224 #248551
square
#242785 #852457 #858224 #248551
split-complementary
#242785 #855124 #578524
monochromatic
#0A0B25 #171955 #242785 #3135B5 #5357D0

Accessibility & contrast

On white

12.32
#242785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#242785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242785
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242785#FFFFFF#000000##FFFFFF
##2427851.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242785;
/* rgb */ color: rgb(36, 39, 133);
/* oklch */ color: oklch(34.1% 0.153 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e61a9',
    500: '#242785',
    950: '#000000',
  },
}
SCSS
$custom: #242785;
$custom-light: #6e61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#242785",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 238.144,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34084,
    "c": 0.15295,
    "h": 273.4
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#242785
secondary
#B4B150
accent
#DC47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242785

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#242785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva