#24197F#24197F

#24197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.160 H 276.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#24197F
RGBrgb(36, 25, 127)
HSLhsl(246, 67%, 30%)
HSVhsv(246, 80%, 50%)
CMYKcmyk(71.7%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.37, 37.98, -55.02)
CIE-LCHlch(18.37, 66.86, 304.62°)
OKLaboklab(31.3% 0.0185 -0.159)
OKLCHoklch(31.3% 0.16 276.6)
XYZxyz(4.9047, 2.6022, 20.3184)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24197F #747F19
analogous
#19417F #24197F #57197F
triadic
#24197F #7F2419 #197F24
tetradic
#24197F #7F1941 #747F19 #197F57
square
#24197F #7F1941 #747F19 #197F57
split-complementary
#24197F #7F5719 #417F19
monochromatic
#07051A #160F4C #24197F #3223B2 #4B3AD8

Accessibility & contrast

On white

13.81
#24197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24197F
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24197F#FFFFFF#000000##FFFFFF
##24197F1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #24197f;
/* rgb */ color: rgb(36, 25, 127);
/* oklch */ color: oklch(31.3% 0.160 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#24197f',
    950: '#000000',
  },
}
SCSS
$custom: #24197f;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24197f",
  "rgb": {
    "r": 36,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 246.471,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31303,
    "c": 0.1601,
    "h": 276.6
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24197F

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

Preview Lab → · Contrast checker → · Palette generator →

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