#24338E#24338E

#24338E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.151 H 270.0°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#24338E
RGBrgb(36, 51, 142)
HSLhsl(232, 60%, 35%)
HSVhsv(232, 75%, 56%)
CMYKcmyk(74.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.85, 27.11, -52.14)
CIE-LCHlch(25.85, 58.77, 297.47°)
OKLaboklab(37.14% 0.0001 -0.1506)
OKLCHoklch(37.14% 0.151 270)
XYZxyz(6.7922, 4.6950, 26.1342)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24338E #8E7F24
analogous
#24688E #24338E #4A248E
triadic
#24338E #8E2433 #338E24
tetradic
#24338E #8E2468 #8E7F24 #248E4A
square
#24338E #8E2468 #8E7F24 #248E4A
split-complementary
#24338E #8E4A24 #688E24
monochromatic
#0B102C #18215D #24338E #3045BF #5869D5

Accessibility & contrast

On white

10.83
#24338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#24338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24338E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24338E#FFFFFF#000000##FFFFFF
##24338E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #24338e;
/* rgb */ color: rgb(36, 51, 142);
/* oklch */ color: oklch(37.1% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#6f6ab0',
    500: '#24338e',
    950: '#000000',
  },
}
SCSS
$custom: #24338e;
$custom-light: #6f6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#24338e",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 231.509,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.15064,
    "h": 270
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#24338E
secondary
#B9AB55
accent
#CC45E3
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #24338E

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

Preview Lab → · Contrast checker → · Palette generator →

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