#24197E#24197E

#24197E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.159 H 276.8°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#24197E
RGBrgb(36, 25, 126)
HSLhsl(247, 67%, 30%)
HSVhsv(247, 80%, 49%)
CMYKcmyk(71.4%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.26, 37.65, -54.58)
CIE-LCHlch(18.26, 66.31, 304.60°)
OKLaboklab(31.19% 0.0188 -0.1577)
OKLCHoklch(31.19% 0.159 276.8)
XYZxyz(4.8399, 2.5762, 19.9768)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24197E #737E19
analogous
#19407E #24197E #57197E
triadic
#24197E #7E2419 #197E24
tetradic
#24197E #7E1940 #737E19 #197E57
square
#24197E #7E1940 #737E19 #197E57
split-complementary
#24197E #7E5719 #407E19
monochromatic
#07051A #150F4B #24197E #3323B1 #4B3AD8

Accessibility & contrast

On white

13.86
#24197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#24197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24197E
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24197E#FFFFFF#000000##FFFFFF
##24197E1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #24197e;
/* rgb */ color: rgb(36, 25, 126);
/* oklch */ color: oklch(31.2% 0.159 276.8);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#24197e',
    950: '#000000',
  },
}
SCSS
$custom: #24197e;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24197e",
  "rgb": {
    "r": 36,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 246.535,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31189,
    "c": 0.15884,
    "h": 276.8
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#24197E
secondary
#A6B241
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24197E

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

Preview Lab → · Contrast checker → · Palette generator →

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