#24338F#24338F

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

Color values

HEX#24338F
RGBrgb(36, 51, 143)
HSLhsl(232, 60%, 35%)
HSVhsv(232, 75%, 56%)
CMYKcmyk(74.8%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.94, 27.49, -52.61)
CIE-LCHlch(25.94, 59.36, 297.59°)
OKLaboklab(37.24% 0.0001 -0.152)
OKLCHoklch(37.24% 0.152 270)
XYZxyz(6.8676, 4.7252, 26.5314)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24338F #8F8024
analogous
#24688F #24338F #4B248F
triadic
#24338F #8F2433 #338F24
tetradic
#24338F #8F2468 #8F8024 #248F4B
square
#24338F #8F2468 #8F8024 #248F4B
split-complementary
#24338F #8F4B24 #688F24
monochromatic
#0B102D #18225E #24338F #3044C0 #586AD5

Accessibility & contrast

On white

10.80
#24338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24338F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24338F#FFFFFF#000000##FFFFFF
##24338F1.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #24338f;
/* rgb */ color: rgb(36, 51, 143);
/* oklch */ color: oklch(37.2% 0.152 270.0);
Tailwind
colors: {
  custom: {
    50: '#6f6ab1',
    500: '#24338f',
    950: '#000000',
  },
}
SCSS
$custom: #24338f;
$custom-light: #6f6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#24338f",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 231.589,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37237,
    "c": 0.15202,
    "h": 270
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#24338F
secondary
#B9AB55
accent
#CD45E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #24338F

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

Preview Lab → · Contrast checker → · Palette generator →

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