#151D71#151D71

#151D71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.142 H 270.0°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#151D71
RGBrgb(21, 29, 113)
HSLhsl(235, 69%, 26%)
HSVhsv(235, 81%, 44%)
CMYKcmyk(81.4%, 74.3%, 0%, 55.7%)
CIE-LABlab(16.65, 29.15, -48.92)
CIE-LCHlch(16.65, 56.95, 300.79°)
OKLaboklab(29.35% 0.0001 -0.1417)
OKLCHoklch(29.35% 0.142 270)
XYZxyz(3.7282, 2.2300, 15.8535)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D71 #716915
analogous
#154B71 #151D71 #3B1571
triadic
#151D71 #71151D #1D7115
tetradic
#151D71 #71154B #716915 #15713B
square
#151D71 #71154B #716915 #15713B
split-complementary
#151D71 #713B15 #4B7115
monochromatic
#05071A #0B103D #151D71 #1F2AA5 #2938D7

Accessibility & contrast

On white

14.52
#151D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#151D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D71
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D71#FFFFFF#000000##FFFFFF
##151D711.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151d71;
/* rgb */ color: rgb(21, 29, 113);
/* oklch */ color: oklch(29.3% 0.142 270.0);
Tailwind
colors: {
  custom: {
    50: '#64599b',
    500: '#151d71',
    950: '#000000',
  },
}
SCSS
$custom: #151d71;
$custom-light: #64599b;
$custom-dark: #000000;
JSON
{
  "hex": "#151d71",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 234.783,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29348,
    "c": 0.14167,
    "h": 270
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#151D71
secondary
#A79E3B
accent
#DC3CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151D71

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

Preview Lab → · Contrast checker → · Palette generator →

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