#24337F#24337F

#24337F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.8% C 0.129 H 270.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#24337F
RGBrgb(36, 51, 127)
HSLhsl(230, 56%, 32%)
HSVhsv(230, 72%, 50%)
CMYKcmyk(71.7%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.56, 21.35, -44.88)
CIE-LCHlch(24.56, 49.70, 295.44°)
OKLaboklab(35.79% 0.0002 -0.1293)
OKLCHoklch(35.79% 0.129 270.1)
XYZxyz(5.7408, 4.2745, 20.5971)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24337F #7F7024
analogous
#24617F #24337F #43247F
triadic
#24337F #7F2433 #337F24
tetradic
#24337F #7F2461 #7F7024 #247F43
square
#24337F #7F2461 #7F7024 #247F43
split-complementary
#24337F #7F4324 #617F24
monochromatic
#090D20 #16204F #24337F #3246AF #5065CD

Accessibility & contrast

On white

11.32
#24337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#24337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24337F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24337F#FFFFFF#000000##FFFFFF
##24337F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #24337f;
/* rgb */ color: rgb(36, 51, 127);
/* oklch */ color: oklch(35.8% 0.129 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b6aa5',
    500: '#24337f',
    950: '#000000',
  },
}
SCSS
$custom: #24337f;
$custom-light: #6b6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#24337f",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 230.11,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35786,
    "c": 0.12932,
    "h": 270.1
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#24337F
secondary
#B1A14E
accent
#C649DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #24337F

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

Preview Lab → · Contrast checker → · Palette generator →

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