#151D64#151D64

#151D64 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 27.9% C 0.124 H 270.7°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#151D64
RGBrgb(21, 29, 100)
HSLhsl(234, 65%, 24%)
HSVhsv(234, 79%, 39%)
CMYKcmyk(79%, 71%, 0%, 60.8%)
CIE-LABlab(15.26, 24.09, -42.70)
CIE-LCHlch(15.26, 49.03, 299.43°)
OKLaboklab(27.93% 0.0015 -0.1235)
OKLCHoklch(27.93% 0.124 270.7)
XYZxyz(3.0481, 1.9579, 12.2714)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D64 #645C15
analogous
#154464 #151D64 #341564
triadic
#151D64 #64151D #1D6415
tetradic
#151D64 #641544 #645C15 #156434
square
#151D64 #641544 #645C15 #156434
split-complementary
#151D64 #643415 #446415
monochromatic
#050719 #0A0E31 #151D64 #202C97 #2A3AC9

Accessibility & contrast

On white

15.09
#151D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D64
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D64#FFFFFF#000000##FFFFFF
##151D641.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151d64;
/* rgb */ color: rgb(21, 29, 100);
/* oklch */ color: oklch(27.9% 0.124 270.7);
Tailwind
colors: {
  custom: {
    50: '#615991',
    500: '#151d64',
    950: '#000000',
  },
}
SCSS
$custom: #151d64;
$custom-light: #615991;
$custom-dark: #000000;
JSON
{
  "hex": "#151d64",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 233.924,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27927,
    "c": 0.12353,
    "h": 270.7
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#151D64
secondary
#9B913A
accent
#D740E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151D64

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

Preview Lab → · Contrast checker → · Palette generator →

#151D64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva