#152A6A#152A6A

#152A6A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.115 H 266.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#152A6A
RGBrgb(21, 42, 106)
HSLhsl(225, 67%, 25%)
HSVhsv(225, 80%, 42%)
CMYKcmyk(80.2%, 60.4%, 0%, 58.4%)
CIE-LABlab(19.46, 17.21, -39.78)
CIE-LCHlch(19.46, 43.34, 293.39°)
OKLaboklab(31.2% -0.008 -0.1148)
OKLCHoklch(31.2% 0.115 266)
XYZxyz(3.7378, 2.8555, 13.9871)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6A #6A5515
analogous
#15556A #152A6A #2A156A
triadic
#152A6A #6A152A #2A6A15
tetradic
#152A6A #6A1555 #6A5515 #156A2A
square
#152A6A #6A1555 #6A5515 #156A2A
split-complementary
#152A6A #6A2A15 #556A15
monochromatic
#050A1A #0B1637 #152A6A #1F3E9D #2952D0

Accessibility & contrast

On white

13.37
#152A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A6A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6A#FFFFFF#000000##FFFFFF
##152A6A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152a6a;
/* rgb */ color: rgb(21, 42, 106);
/* oklch */ color: oklch(31.2% 0.115 266.0);
Tailwind
colors: {
  custom: {
    50: '#616395',
    500: '#152a6a',
    950: '#000000',
  },
}
SCSS
$custom: #152a6a;
$custom-light: #616395;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6a",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 106
  },
  "hsl": {
    "h": 225.176,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.11509,
    "h": 266
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#152A6A
secondary
#A1873A
accent
#BF3EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #152A6A

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

Preview Lab → · Contrast checker → · Palette generator →

#152A6A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva