#152F77#152F77

#152F77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.127 H 265.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#152F77
RGBrgb(21, 47, 119)
HSLhsl(224, 70%, 27%)
HSVhsv(224, 82%, 47%)
CMYKcmyk(82.4%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.03, 19.00, -43.96)
CIE-LCHlch(22.03, 47.89, 293.38°)
OKLaboklab(33.48% -0.0111 -0.127)
OKLCHoklch(33.48% 0.127 265)
XYZxyz(4.6544, 3.5238, 17.8840)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F77 #775D15
analogous
#156077 #152F77 #2C1577
triadic
#152F77 #77152F #2F7715
tetradic
#152F77 #771560 #775D15 #15772C
square
#152F77 #771560 #775D15 #15772C
split-complementary
#152F77 #772C15 #607715
monochromatic
#050A1A #0C1A43 #152F77 #1E44AB #2D5BDA

Accessibility & contrast

On white

12.32
#152F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#152F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F77
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F77#FFFFFF#000000##FFFFFF
##152F771.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152f77;
/* rgb */ color: rgb(21, 47, 119);
/* oklch */ color: oklch(33.5% 0.127 265.0);
Tailwind
colors: {
  custom: {
    50: '#64679f',
    500: '#152f77',
    950: '#000000',
  },
}
SCSS
$custom: #152f77;
$custom-light: #64679f;
$custom-dark: #000000;
JSON
{
  "hex": "#152f77",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 224.082,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.12748,
    "h": 265
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#152F77
secondary
#AD8F3B
accent
#BE3BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F77

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

Preview Lab → · Contrast checker → · Palette generator →

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