#24238F#24238F

#24238F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.170 H 273.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#24238F
RGBrgb(36, 35, 143)
HSLhsl(241, 61%, 35%)
HSVhsv(241, 76%, 56%)
CMYKcmyk(74.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.16, 37.71, -58.82)
CIE-LCHlch(22.16, 69.87, 302.66°)
OKLaboklab(34.5% 0.0098 -0.1702)
OKLCHoklch(34.5% 0.17 273.3)
XYZxyz(6.2849, 3.5597, 26.3371)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24238F #8E8F23
analogous
#23588F #24238F #5A238F
triadic
#24238F #8F2423 #238F24
tetradic
#24238F #8F2358 #8E8F23 #238F5A
square
#24238F #8F2358 #8E8F23 #238F5A
split-complementary
#24238F #8F5A23 #588F23
monochromatic
#0B0B2D #18175E #24238F #302FC0 #5857D6

Accessibility & contrast

On white

12.27
#24238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#24238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24238F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24238F#FFFFFF#000000##FFFFFF
##24238F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #24238f;
/* rgb */ color: rgb(36, 35, 143);
/* oklch */ color: oklch(34.5% 0.170 273.3);
Tailwind
colors: {
  custom: {
    50: '#715fb1',
    500: '#24238f',
    950: '#000000',
  },
}
SCSS
$custom: #24238f;
$custom-light: #715fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#24238f",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 240.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34501,
    "c": 0.17047,
    "h": 273.3
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#24238F
secondary
#B9BA54
accent
#E444E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #24238F

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

Preview Lab → · Contrast checker → · Palette generator →

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