#24287D#24287D

#24287D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.141 H 273.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#24287D
RGBrgb(36, 40, 125)
HSLhsl(237, 55%, 32%)
HSVhsv(237, 71%, 49%)
CMYKcmyk(71.2%, 68%, 0%, 51%)
CIE-LABlab(21.48, 28.10, -48.64)
CIE-LCHlch(21.48, 56.18, 300.02°)
OKLaboklab(33.46% 0.0093 -0.1405)
OKLCHoklch(33.46% 0.141 273.8)
XYZxyz(5.1868, 3.3728, 19.7757)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24287D #7D7924
analogous
#24557D #24287D #4D247D
triadic
#24287D #7D2428 #287D24
tetradic
#24287D #7D2455 #7D7924 #247D4D
square
#24287D #7D2455 #7D7924 #247D4D
split-complementary
#24287D #7D4D24 #557D24
monochromatic
#090A1E #16194D #24287D #3237AD #4F55CC

Accessibility & contrast

On white

12.54
#24287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#24287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24287D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24287D#FFFFFF#000000##FFFFFF
##24287D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24287d;
/* rgb */ color: rgb(36, 40, 125);
/* oklch */ color: oklch(33.5% 0.141 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c62a3',
    500: '#24287d',
    950: '#000000',
  },
}
SCSS
$custom: #24287d;
$custom-light: #6c62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#24287d",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 237.303,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.14077,
    "h": 273.8
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#24287D
secondary
#AFAB4D
accent
#D849DF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #24287D

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

Preview Lab → · Contrast checker → · Palette generator →

#24287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva