#152F7E#152F7E

#152F7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.138 H 265.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#152F7E
RGBrgb(21, 47, 126)
HSLhsl(225, 71%, 29%)
HSVhsv(225, 83%, 49%)
CMYKcmyk(83.3%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.65, 21.88, -47.40)
CIE-LCHlch(22.65, 52.20, 294.78°)
OKLaboklab(34.14% -0.0109 -0.1371)
OKLCHoklch(34.14% 0.138 265.5)
XYZxyz(5.0903, 3.6982, 20.1802)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F7E #7E6415
analogous
#15647E #152F7E #30157E
triadic
#152F7E #7E152F #2F7E15
tetradic
#152F7E #7E1564 #7E6415 #157E30
square
#152F7E #7E1564 #7E6415 #157E30
split-complementary
#152F7E #7E3015 #647E15
monochromatic
#040A1A #0C1B4A #152F7E #1E43B2 #315BDD

Accessibility & contrast

On white

12.07
#152F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#152F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F7E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F7E#FFFFFF#000000##FFFFFF
##152F7E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152f7e;
/* rgb */ color: rgb(21, 47, 126);
/* oklch */ color: oklch(34.1% 0.138 265.5);
Tailwind
colors: {
  custom: {
    50: '#6667a4',
    500: '#152f7e',
    950: '#000000',
  },
}
SCSS
$custom: #152f7e;
$custom-light: #6667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#152f7e",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 225.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34137,
    "c": 0.13751,
    "h": 265.5
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#152F7E
secondary
#B3963C
accent
#C13AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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