#24167E#24167E

#24167E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.162 H 277.2°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#24167E
RGBrgb(36, 22, 126)
HSLhsl(248, 70%, 29%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(71.4%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.71, 39.23, -55.48)
CIE-LCHlch(17.71, 67.95, 305.26°)
OKLaboklab(30.81% 0.0203 -0.1603)
OKLCHoklch(30.81% 0.162 277.2)
XYZxyz(4.7791, 2.4548, 19.9566)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24167E #707E16
analogous
#163C7E #24167E #58167E
triadic
#24167E #7E2416 #167E24
tetradic
#24167E #7E163C #707E16 #167E58
square
#24167E #7E163C #707E16 #167E58
split-complementary
#24167E #7E5816 #3C7E16
monochromatic
#07051A #150D4A #24167E #331FB2 #4A33DB

Accessibility & contrast

On white

14.08
#24167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#24167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24167E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24167E#FFFFFF#000000##FFFFFF
##24167E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24167e;
/* rgb */ color: rgb(36, 22, 126);
/* oklch */ color: oklch(30.8% 0.162 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#24167e',
    950: '#000000',
  },
}
SCSS
$custom: #24167e;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24167e",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 248.077,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30808,
    "c": 0.1616,
    "h": 277.2
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24167E

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

Preview Lab → · Contrast checker → · Palette generator →

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