#24167F#24167F

#24167F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.163 H 277.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#24167F
RGBrgb(36, 22, 127)
HSLhsl(248, 70%, 29%)
HSVhsv(248, 83%, 50%)
CMYKcmyk(71.7%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.83, 39.55, -55.92)
CIE-LCHlch(17.83, 68.50, 305.27°)
OKLaboklab(30.93% 0.02 -0.1616)
OKLCHoklch(30.93% 0.163 277)
XYZxyz(4.8440, 2.4808, 20.2981)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24167F #717F16
analogous
#163D7F #24167F #59167F
triadic
#24167F #7F2416 #167F24
tetradic
#24167F #7F163D #717F16 #167F59
square
#24167F #7F163D #717F16 #167F59
split-complementary
#24167F #7F5916 #3D7F16
monochromatic
#07051A #150D4B #24167F #331FB3 #4A34DC

Accessibility & contrast

On white

14.04
#24167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#24167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24167F
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24167F#FFFFFF#000000##FFFFFF
##24167F1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #24167f;
/* rgb */ color: rgb(36, 22, 127);
/* oklch */ color: oklch(30.9% 0.163 277.0);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#24167f',
    950: '#000000',
  },
}
SCSS
$custom: #24167f;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24167f",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 248,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30925,
    "c": 0.16283,
    "h": 277
  },
  "luminance": 0.02481
}

Semantic roles & 50–950 ramp

primary
#24167F
secondary
#A4B43D
accent
#ED3BD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24167F

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

Preview Lab → · Contrast checker → · Palette generator →

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