#152D8E#152D8E

#152D8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.162 H 266.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#152D8E
RGBrgb(21, 45, 142)
HSLhsl(228, 74%, 32%)
HSVhsv(228, 85%, 56%)
CMYKcmyk(85.2%, 68.3%, 0%, 44.3%)
CIE-LABlab(23.63, 29.66, -55.80)
CIE-LCHlch(23.63, 63.19, 298.00°)
OKLaboklab(35.33% -0.0101 -0.1617)
OKLCHoklch(35.33% 0.162 266.4)
XYZxyz(6.1284, 3.9884, 26.0328)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D8E #8E7615
analogous
#156A8E #152D8E #3A158E
triadic
#152D8E #8E152D #2D8E15
tetradic
#152D8E #8E156A #8E7615 #158E3A
square
#152D8E #8E156A #8E7615 #158E3A
split-complementary
#152D8E #8E3A15 #6A8E15
monochromatic
#050B23 #0D1C59 #152D8E #1D3EC3 #3B5CE2

Accessibility & contrast

On white

11.68
#152D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#152D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D8E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D8E#FFFFFF#000000##FFFFFF
##152D8E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #152d8e;
/* rgb */ color: rgb(21, 45, 142);
/* oklch */ color: oklch(35.3% 0.162 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b66b0',
    500: '#152d8e',
    950: '#000000',
  },
}
SCSS
$custom: #152d8e;
$custom-light: #6b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#152d8e",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 228.099,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3533,
    "c": 0.16199,
    "h": 266.4
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#152D8E
secondary
#C2A73D
accent
#CC37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #152D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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