#24398B#24398B

#24398B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.139 H 268.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#24398B
RGBrgb(36, 57, 139)
HSLhsl(228, 59%, 34%)
HSVhsv(228, 74%, 55%)
CMYKcmyk(74.1%, 59%, 0%, 45.5%)
CIE-LABlab(27.20, 21.87, -48.08)
CIE-LCHlch(27.20, 52.82, 294.46°)
OKLaboklab(38.07% -0.0045 -0.1386)
OKLCHoklch(38.07% 0.139 268.1)
XYZxyz(6.8493, 5.1647, 25.0570)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24398B #8B7624
analogous
#246D8B #24398B #43248B
triadic
#24398B #8B2439 #398B24
tetradic
#24398B #8B246D #8B7624 #248B43
square
#24398B #8B246D #8B7624 #248B43
split-complementary
#24398B #8B4324 #6D8B24
monochromatic
#0B112A #17255A #24398B #314DBC #5670D3

Accessibility & contrast

On white

10.33
#24398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#24398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24398B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24398B#FFFFFF#000000##FFFFFF
##24398B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #24398b;
/* rgb */ color: rgb(36, 57, 139);
/* oklch */ color: oklch(38.1% 0.139 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fae',
    500: '#24398b',
    950: '#000000',
  },
}
SCSS
$custom: #24398b;
$custom-light: #6e6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#24398b",
  "rgb": {
    "r": 36,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 227.767,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.13871,
    "h": 268.1
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#24398B
secondary
#B7A353
accent
#C246E2
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #24398B

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

Preview Lab → · Contrast checker → · Palette generator →

#24398B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva