#242587#242587

#242587 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.158 H 273.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#242587
RGBrgb(36, 37, 135)
HSLhsl(239, 58%, 34%)
HSVhsv(239, 73%, 53%)
CMYKcmyk(73.3%, 72.6%, 0%, 47.1%)
CIE-LABlab(21.75, 33.68, -54.50)
CIE-LCHlch(21.75, 64.07, 301.72°)
OKLaboklab(33.96% 0.0101 -0.1576)
OKLCHoklch(33.96% 0.158 273.6)
XYZxyz(5.7608, 3.4469, 23.2787)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242587 #878624
analogous
#245687 #242587 #542487
triadic
#242587 #872425 #258724
tetradic
#242587 #872456 #878624 #248754
square
#242587 #872456 #878624 #248754
split-complementary
#242587 #875424 #568724
monochromatic
#0A0B26 #171857 #242587 #3132B7 #5455D1

Accessibility & contrast

On white

12.43
#242587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#242587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242587
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242587#FFFFFF#000000##FFFFFF
##2425871.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #242587;
/* rgb */ color: rgb(36, 37, 135);
/* oklch */ color: oklch(34.0% 0.158 273.6);
Tailwind
colors: {
  custom: {
    50: '#6f60ab',
    500: '#242587',
    950: '#000000',
  },
}
SCSS
$custom: #242587;
$custom-light: #6f60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242587",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 239.394,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33957,
    "c": 0.15792,
    "h": 273.6
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#242587
secondary
#B5B451
accent
#E047E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242587

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

Preview Lab → · Contrast checker → · Palette generator →

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