#152E7E#152E7E

#152E7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.139 H 265.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#152E7E
RGBrgb(21, 46, 126)
HSLhsl(226, 71%, 29%)
HSVhsv(226, 83%, 49%)
CMYKcmyk(83.3%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.37, 22.59, -47.85)
CIE-LCHlch(22.37, 52.91, 295.27°)
OKLaboklab(33.93% -0.0102 -0.1384)
OKLCHoklch(33.93% 0.139 265.8)
XYZxyz(5.0508, 3.6192, 20.1670)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E7E #7E6515
analogous
#15637E #152E7E #31157E
triadic
#152E7E #7E152E #2E7E15
tetradic
#152E7E #7E1563 #7E6515 #157E31
square
#152E7E #7E1563 #7E6515 #157E31
split-complementary
#152E7E #7E3115 #637E15
monochromatic
#040A1A #0C1B4A #152E7E #1E41B2 #315ADD

Accessibility & contrast

On white

12.18
#152E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#152E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E7E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E7E#FFFFFF#000000##FFFFFF
##152E7E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152e7e;
/* rgb */ color: rgb(21, 46, 126);
/* oklch */ color: oklch(33.9% 0.139 265.8);
Tailwind
colors: {
  custom: {
    50: '#6666a4',
    500: '#152e7e',
    950: '#000000',
  },
}
SCSS
$custom: #152e7e;
$custom-light: #6666a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152e7e",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 225.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.1388,
    "h": 265.8
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#152E7E
secondary
#B3973C
accent
#C33AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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