#24287A#24287A

#24287A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.137 H 274.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#24287A
RGBrgb(36, 40, 122)
HSLhsl(237, 54%, 31%)
HSVhsv(237, 70%, 48%)
CMYKcmyk(70.5%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.20, 26.99, -47.20)
CIE-LCHlch(21.20, 54.37, 299.76°)
OKLaboklab(33.17% 0.0095 -0.1362)
OKLCHoklch(33.17% 0.137 274)
XYZxyz(4.9980, 3.2973, 18.7816)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24287A #7A7624
analogous
#24537A #24287A #4B247A
triadic
#24287A #7A2428 #287A24
tetradic
#24287A #7A2453 #7A7624 #247A4B
square
#24287A #7A2453 #7A7624 #247A4B
split-complementary
#24287A #7A4B24 #537A24
monochromatic
#08091B #16194B #24287A #3237A9 #4E54CB

Accessibility & contrast

On white

12.65
#24287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#24287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24287A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24287A#FFFFFF#000000##FFFFFF
##24287A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24287a;
/* rgb */ color: rgb(36, 40, 122);
/* oklch */ color: oklch(33.2% 0.137 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b62a1',
    500: '#24287a',
    950: '#000000',
  },
}
SCSS
$custom: #24287a;
$custom-light: #6b62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#24287a",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 237.209,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.13656,
    "h": 274
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#24287A
secondary
#ACA84D
accent
#D74ADE
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #24287A

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

Preview Lab → · Contrast checker → · Palette generator →

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