#152B7F#152B7F

#152B7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.144 H 266.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#152B7F
RGBrgb(21, 43, 127)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 83%, 50%)
CMYKcmyk(83.5%, 66.1%, 0%, 50.2%)
CIE-LABlab(21.65, 25.10, -49.66)
CIE-LCHlch(21.65, 55.64, 296.81°)
OKLaboklab(33.43% -0.0085 -0.1438)
OKLCHoklch(33.43% 0.144 266.6)
XYZxyz(5.0026, 3.4189, 20.4708)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7F #7F6915
analogous
#15607F #152B7F #34157F
triadic
#152B7F #7F152B #2B7F15
tetradic
#152B7F #7F1560 #7F6915 #157F34
square
#152B7F #7F1560 #7F6915 #157F34
split-complementary
#152B7F #7F3415 #607F15
monochromatic
#04091A #0C194A #152B7F #1E3DB4 #3155DD

Accessibility & contrast

On white

12.47
#152B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#152B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B7F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B7F#FFFFFF#000000##FFFFFF
##152B7F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152b7f;
/* rgb */ color: rgb(21, 43, 127);
/* oklch */ color: oklch(33.4% 0.144 266.6);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#152b7f',
    950: '#000000',
  },
}
SCSS
$custom: #152b7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7f",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 227.547,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33426,
    "c": 0.14402,
    "h": 266.6
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#152B7F
secondary
#B49B3C
accent
#C939EE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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