#151A52#151A52

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

Color values

HEX#151A52
RGBrgb(21, 26, 82)
HSLhsl(235, 59%, 20%)
HSVhsv(235, 74%, 32%)
CMYKcmyk(74.4%, 68.3%, 0%, 67.8%)
CIE-LABlab(12.65, 19.01, -34.90)
CIE-LCHlch(12.65, 39.75, 298.57°)
OKLaboklab(25.46% 0.0052 -0.1007)
OKLCHoklch(25.46% 0.101 273)
XYZxyz(2.2011, 1.5072, 8.1559)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A52 #524D15
analogous
#153852 #151A52 #2E1552
triadic
#151A52 #52151A #1A5215
tetradic
#151A52 #521538 #524D15 #15522E
square
#151A52 #521538 #524D15 #15522E
split-complementary
#151A52 #522E15 #385215
monochromatic
#060818 #090B21 #151A52 #212983 #2E39B3

Accessibility & contrast

On white

16.14
#151A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151A52
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A52#FFFFFF#000000##FFFFFF
##151A521.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#002833
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151a52;
/* rgb */ color: rgb(21, 26, 82);
/* oklch */ color: oklch(25.5% 0.101 273.0);
Tailwind
colors: {
  custom: {
    50: '#5c5683',
    500: '#151a52',
    950: '#000000',
  },
}
SCSS
$custom: #151a52;
$custom-light: #5c5683;
$custom-dark: #000000;
JSON
{
  "hex": "#151a52",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 235.082,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25464,
    "c": 0.10084,
    "h": 273
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#151A52
secondary
#8A8339
accent
#D645E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151A52

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

Preview Lab → · Contrast checker → · Palette generator →

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