#152A77#152A77

#152A77 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.134 H 266.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#152A77
RGBrgb(21, 42, 119)
HSLhsl(227, 70%, 27%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(82.4%, 64.7%, 0%, 53.3%)
CIE-LABlab(20.62, 22.57, -46.26)
CIE-LCHlch(20.62, 51.47, 296.00°)
OKLaboklab(32.44% -0.0077 -0.1338)
OKLCHoklch(32.44% 0.134 266.7)
XYZxyz(4.4658, 3.1468, 17.8212)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A77 #776215
analogous
#155B77 #152A77 #311577
triadic
#152A77 #77152A #2A7715
tetradic
#152A77 #77155B #776215 #157731
square
#152A77 #77155B #776215 #157731
split-complementary
#152A77 #773115 #5B7715
monochromatic
#05091A #0C1843 #152A77 #1E3CAB #2D52DA

Accessibility & contrast

On white

12.89
#152A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A77
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A77#FFFFFF#000000##FFFFFF
##152A771.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152a77;
/* rgb */ color: rgb(21, 42, 119);
/* oklch */ color: oklch(32.4% 0.134 266.7);
Tailwind
colors: {
  custom: {
    50: '#65639f',
    500: '#152a77',
    950: '#000000',
  },
}
SCSS
$custom: #152a77;
$custom-light: #65639f;
$custom-dark: #000000;
JSON
{
  "hex": "#152a77",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 227.143,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32435,
    "c": 0.13404,
    "h": 266.7
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#152A77
secondary
#AD943B
accent
#C73BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050F
muted
#7A797E

Preview Lab

Preview with #152A77

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

Preview Lab → · Contrast checker → · Palette generator →

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