#151A51#151A51

#151A51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.099 H 273.0°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#151A51
RGBrgb(21, 26, 81)
HSLhsl(235, 59%, 20%)
HSVhsv(235, 74%, 32%)
CMYKcmyk(74.1%, 67.9%, 0%, 68.2%)
CIE-LABlab(12.56, 18.61, -34.38)
CIE-LCHlch(12.56, 39.09, 298.42°)
OKLaboklab(25.36% 0.0052 -0.0992)
OKLCHoklch(25.36% 0.099 273)
XYZxyz(2.1634, 1.4921, 7.9570)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A51 #514C15
analogous
#153851 #151A51 #2E1551
triadic
#151A51 #51151A #1A5115
tetradic
#151A51 #511538 #514C15 #15512E
square
#151A51 #511538 #514C15 #15512E
split-complementary
#151A51 #512E15 #385115
monochromatic
#060818 #080A20 #151A51 #222A82 #2E39B2

Accessibility & contrast

On white

16.17
#151A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#151A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A51
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A51#FFFFFF#000000##FFFFFF
##151A511.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151a51;
/* rgb */ color: rgb(21, 26, 81);
/* oklch */ color: oklch(25.4% 0.099 273.0);
Tailwind
colors: {
  custom: {
    50: '#5c5682',
    500: '#151a51',
    950: '#000000',
  },
}
SCSS
$custom: #151a51;
$custom-light: #5c5682;
$custom-dark: #000000;
JSON
{
  "hex": "#151a51",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 235,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.25364,
    "c": 0.0993,
    "h": 273
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#151A51
secondary
#898239
accent
#D546E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #151A51

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

Preview Lab → · Contrast checker → · Palette generator →

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