#24387F#24387F

#24387F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.123 H 268.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#24387F
RGBrgb(36, 56, 127)
HSLhsl(227, 56%, 32%)
HSVhsv(227, 72%, 50%)
CMYKcmyk(71.7%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.97, 17.88, -42.60)
CIE-LCHlch(25.97, 46.20, 292.77°)
OKLaboklab(36.84% -0.0043 -0.1225)
OKLCHoklch(36.84% 0.123 268)
XYZxyz(5.9712, 4.7351, 20.6738)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24387F #7F6B24
analogous
#24667F #24387F #3E247F
triadic
#24387F #7F2438 #387F24
tetradic
#24387F #7F2466 #7F6B24 #247F3E
square
#24387F #7F2466 #7F6B24 #247F3E
split-complementary
#24387F #7F3E24 #667F24
monochromatic
#090E20 #16234F #24387F #324DAF #506CCD

Accessibility & contrast

On white

10.78
#24387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#24387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24387F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24387F#FFFFFF#000000##FFFFFF
##24387F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #24387f;
/* rgb */ color: rgb(36, 56, 127);
/* oklch */ color: oklch(36.8% 0.123 268.0);
Tailwind
colors: {
  custom: {
    50: '#6b6ea5',
    500: '#24387f',
    950: '#000000',
  },
}
SCSS
$custom: #24387f;
$custom-light: #6b6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#24387f",
  "rgb": {
    "r": 36,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 226.813,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36841,
    "c": 0.1226,
    "h": 268
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#24387F
secondary
#B19B4E
accent
#BE49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #24387F

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

Preview Lab → · Contrast checker → · Palette generator →

#24387F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva