#152D77#152D77

#152D77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.130 H 265.7°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#152D77
RGBrgb(21, 45, 119)
HSLhsl(225, 70%, 27%)
HSVhsv(225, 82%, 47%)
CMYKcmyk(82.4%, 62.2%, 0%, 53.3%)
CIE-LABlab(21.46, 20.43, -44.89)
CIE-LCHlch(21.46, 49.32, 294.47°)
OKLaboklab(33.06% -0.0097 -0.1298)
OKLCHoklch(33.06% 0.13 265.7)
XYZxyz(4.5762, 3.3676, 17.8580)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D77 #775F15
analogous
#155E77 #152D77 #2E1577
triadic
#152D77 #77152D #2D7715
tetradic
#152D77 #77155E #775F15 #15772E
square
#152D77 #77155E #775F15 #15772E
split-complementary
#152D77 #772E15 #5E7715
monochromatic
#050A1A #0C1943 #152D77 #1E41AB #2D57DA

Accessibility & contrast

On white

12.55
#152D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D77
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D77#FFFFFF#000000##FFFFFF
##152D771.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152d77;
/* rgb */ color: rgb(21, 45, 119);
/* oklch */ color: oklch(33.1% 0.130 265.7);
Tailwind
colors: {
  custom: {
    50: '#64659f',
    500: '#152d77',
    950: '#000000',
  },
}
SCSS
$custom: #152d77;
$custom-light: #64659f;
$custom-dark: #000000;
JSON
{
  "hex": "#152d77",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 225.306,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33057,
    "c": 0.13012,
    "h": 265.7
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#152D77
secondary
#AD913B
accent
#C13BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D77

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

Preview Lab → · Contrast checker → · Palette generator →

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