#151F4C#151F4C

#151F4C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.084 H 270.1°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#151F4C
RGBrgb(21, 31, 76)
HSLhsl(229, 57%, 19%)
HSVhsv(229, 72%, 30%)
CMYKcmyk(72.4%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.60, 12.80, -29.27)
CIE-LCHlch(13.60, 31.94, 293.63°)
OKLaboklab(26% 0.0002 -0.0841)
OKLCHoklch(26% 0.084 270.1)
XYZxyz(2.1033, 1.6610, 7.0458)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F4C #4C4215
analogous
#153B4C #151F4C #27154C
triadic
#151F4C #4C151F #1F4C15
tetradic
#151F4C #4C153B #4C4215 #154C27
square
#151F4C #4C153B #4C4215 #154C27
split-complementary
#151F4C #4C2715 #3B4C15
monochromatic
#070A18 #080B1C #151F4C #22337C #2F46AC

Accessibility & contrast

On white

15.76
#151F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#151F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F4C
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F4C#FFFFFF#000000##FFFFFF
##151F4C1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151f4c;
/* rgb */ color: rgb(21, 31, 76);
/* oklch */ color: oklch(26.0% 0.084 270.1);
Tailwind
colors: {
  custom: {
    50: '#5a5a7e',
    500: '#151f4c',
    950: '#000000',
  },
}
SCSS
$custom: #151f4c;
$custom-light: #5a5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#151f4c",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 229.091,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25998,
    "c": 0.08407,
    "h": 270.1
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#151F4C
secondary
#847639
accent
#C448E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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