#24397F#24397F

#24397F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.121 H 267.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#24397F
RGBrgb(36, 57, 127)
HSLhsl(226, 56%, 32%)
HSVhsv(226, 72%, 50%)
CMYKcmyk(71.7%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.25, 17.18, -42.13)
CIE-LCHlch(26.25, 45.50, 292.19°)
OKLaboklab(37.06% -0.0052 -0.1211)
OKLCHoklch(37.06% 0.121 267.5)
XYZxyz(6.0201, 4.8330, 20.6902)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24397F #7F6A24
analogous
#24677F #24397F #3D247F
triadic
#24397F #7F2439 #397F24
tetradic
#24397F #7F2467 #7F6A24 #247F3D
square
#24397F #7F2467 #7F6A24 #247F3D
split-complementary
#24397F #7F3D24 #677F24
monochromatic
#090E20 #16244F #24397F #324EAF #506DCD

Accessibility & contrast

On white

10.68
#24397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#24397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24397F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24397F#FFFFFF#000000##FFFFFF
##24397F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #24397f;
/* rgb */ color: rgb(36, 57, 127);
/* oklch */ color: oklch(37.1% 0.121 267.5);
Tailwind
colors: {
  custom: {
    50: '#6b6fa5',
    500: '#24397f',
    950: '#000000',
  },
}
SCSS
$custom: #24397f;
$custom-light: #6b6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#24397f",
  "rgb": {
    "r": 36,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 226.154,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37058,
    "c": 0.12126,
    "h": 267.5
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#24397F
secondary
#B19A4E
accent
#BC49DF
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #24397F

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

Preview Lab → · Contrast checker → · Palette generator →

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