#24338B#24338B

#24338B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.146 H 270.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#24338B
RGBrgb(36, 51, 139)
HSLhsl(231, 59%, 34%)
HSVhsv(231, 74%, 55%)
CMYKcmyk(74.1%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.58, 25.97, -50.72)
CIE-LCHlch(25.58, 56.98, 297.11°)
OKLaboklab(36.86% 0.0002 -0.1465)
OKLCHoklch(36.86% 0.146 270.1)
XYZxyz(6.5700, 4.6061, 24.9639)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24338B #8B7C24
analogous
#24678B #24338B #49248B
triadic
#24338B #8B2433 #338B24
tetradic
#24338B #8B2467 #8B7C24 #248B49
square
#24338B #8B2467 #8B7C24 #248B49
split-complementary
#24338B #8B4924 #678B24
monochromatic
#0B0F2A #17215A #24338B #3145BC #5668D3

Accessibility & contrast

On white

10.93
#24338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#24338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24338B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24338B#FFFFFF#000000##FFFFFF
##24338B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #24338b;
/* rgb */ color: rgb(36, 51, 139);
/* oklch */ color: oklch(36.9% 0.146 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e6aae',
    500: '#24338b',
    950: '#000000',
  },
}
SCSS
$custom: #24338b;
$custom-light: #6e6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#24338b",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 231.262,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36865,
    "c": 0.14646,
    "h": 270.1
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#24338B
secondary
#B7A953
accent
#CB46E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #24338B

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

Preview Lab → · Contrast checker → · Palette generator →

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