#24337A#24337A

#24337A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.122 H 270.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#24337A
RGBrgb(36, 51, 122)
HSLhsl(230, 54%, 31%)
HSVhsv(230, 70%, 48%)
CMYKcmyk(70.5%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.15, 19.42, -42.38)
CIE-LCHlch(24.15, 46.62, 294.61°)
OKLaboklab(35.35% 0 -0.122)
OKLCHoklch(35.35% 0.122 270)
XYZxyz(5.4230, 4.1473, 18.9233)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24337A #7A6B24
analogous
#245E7A #24337A #40247A
triadic
#24337A #7A2433 #337A24
tetradic
#24337A #7A245E #7A6B24 #247A40
square
#24337A #7A245E #7A6B24 #247A40
split-complementary
#24337A #7A4024 #5E7A24
monochromatic
#080B1B #161F4B #24337A #3247A9 #4E64CB

Accessibility & contrast

On white

11.48
#24337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#24337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24337A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24337A#FFFFFF#000000##FFFFFF
##24337A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #24337a;
/* rgb */ color: rgb(36, 51, 122);
/* oklch */ color: oklch(35.4% 0.122 270.0);
Tailwind
colors: {
  custom: {
    50: '#6a6aa1',
    500: '#24337a',
    950: '#000000',
  },
}
SCSS
$custom: #24337a;
$custom-light: #6a6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#24337a",
  "rgb": {
    "r": 36,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 229.535,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.12198,
    "h": 270
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#24337A
secondary
#AC9C4D
accent
#C44ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #24337A

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

Preview Lab → · Contrast checker → · Palette generator →

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