#152977#152977

#152977 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.135 H 267.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#152977
RGBrgb(21, 41, 119)
HSLhsl(228, 70%, 27%)
HSVhsv(228, 82%, 47%)
CMYKcmyk(82.4%, 65.5%, 0%, 53.3%)
CIE-LABlab(20.35, 23.28, -46.71)
CIE-LCHlch(20.35, 52.19, 296.49°)
OKLaboklab(32.23% -0.0071 -0.1351)
OKLCHoklch(32.23% 0.135 267)
XYZxyz(4.4308, 3.0767, 17.8095)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152977 #776315
analogous
#155A77 #152977 #321577
triadic
#152977 #771529 #297715
tetradic
#152977 #77155A #776315 #157732
square
#152977 #77155A #776315 #157732
split-complementary
#152977 #773215 #5A7715
monochromatic
#05091A #0C1743 #152977 #1E3BAB #2D50DA

Accessibility & contrast

On white

13.00
#152977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152977
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152977#FFFFFF#000000##FFFFFF
##1529771.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152977;
/* rgb */ color: rgb(21, 41, 119);
/* oklch */ color: oklch(32.2% 0.135 267.0);
Tailwind
colors: {
  custom: {
    50: '#65629f',
    500: '#152977',
    950: '#000000',
  },
}
SCSS
$custom: #152977;
$custom-light: #65629f;
$custom-dark: #000000;
JSON
{
  "hex": "#152977",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 227.755,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.13533,
    "h": 267
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#152977
secondary
#AD963B
accent
#C93BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050F
muted
#7A797E

Preview Lab

Preview with #152977

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

Preview Lab → · Contrast checker → · Palette generator →

#152977 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva