#24238B#24238B

#24238B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.165 H 273.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#24238B
RGBrgb(36, 35, 139)
HSLhsl(241, 60%, 34%)
HSVhsv(241, 75%, 55%)
CMYKcmyk(74.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.73, 36.32, -57.04)
CIE-LCHlch(21.73, 67.62, 302.49°)
OKLaboklab(34.07% 0.0105 -0.165)
OKLCHoklch(34.07% 0.165 273.7)
XYZxyz(5.9872, 3.4406, 24.7697)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24238B #8A8B23
analogous
#23568B #24238B #58238B
triadic
#24238B #8B2423 #238B24
tetradic
#24238B #8B2356 #8A8B23 #238B58
square
#24238B #8B2356 #8A8B23 #238B58
split-complementary
#24238B #8B5823 #568B23
monochromatic
#0B0A29 #17175A #24238B #312FBC #5654D4

Accessibility & contrast

On white

12.44
#24238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#24238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24238B
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24238B#FFFFFF#000000##FFFFFF
##24238B1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24238b;
/* rgb */ color: rgb(36, 35, 139);
/* oklch */ color: oklch(34.1% 0.165 273.7);
Tailwind
colors: {
  custom: {
    50: '#705fae',
    500: '#24238b',
    950: '#000000',
  },
}
SCSS
$custom: #24238b;
$custom-light: #705fae;
$custom-dark: #000000;
JSON
{
  "hex": "#24238b",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 240.577,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34066,
    "c": 0.16534,
    "h": 273.7
  },
  "luminance": 0.03441
}

Semantic roles & 50–950 ramp

primary
#24238B
secondary
#B7B852
accent
#E345E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #24238B

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

Preview Lab → · Contrast checker → · Palette generator →

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