#24127F#24127F

#24127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.5% C 0.166 H 277.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#24127F
RGBrgb(36, 18, 127)
HSLhsl(250, 75%, 28%)
HSVhsv(250, 86%, 50%)
CMYKcmyk(71.7%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.18, 41.47, -57.01)
CIE-LCHlch(17.18, 70.49, 306.03°)
OKLaboklab(30.47% 0.0217 -0.1647)
OKLCHoklch(30.47% 0.166 277.5)
XYZxyz(4.7734, 2.3396, 20.2746)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24127F #6D7F12
analogous
#12367F #24127F #5A127F
triadic
#24127F #7F2412 #127F24
tetradic
#24127F #7F1236 #6D7F12 #127F5A
square
#24127F #7F1236 #6D7F12 #127F5A
split-complementary
#24127F #7F5A12 #367F12
monochromatic
#08041B #150A49 #24127F #331AB5 #492BE1

Accessibility & contrast

On white

14.31
#24127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#24127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24127F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24127F#FFFFFF#000000##FFFFFF
##24127F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #24127f;
/* rgb */ color: rgb(36, 18, 127);
/* oklch */ color: oklch(30.5% 0.166 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f55a5',
    500: '#24127f',
    950: '#000000',
  },
}
SCSS
$custom: #24127f;
$custom-light: #6f55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24127f",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 249.908,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30472,
    "c": 0.1661,
    "h": 277.5
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#24127F
secondary
#A0B538
accent
#F236D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24127F

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

Preview Lab → · Contrast checker → · Palette generator →

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