#152C77#152C77

#152C77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.131 H 266.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#152C77
RGBrgb(21, 44, 119)
HSLhsl(226, 70%, 27%)
HSVhsv(226, 82%, 47%)
CMYKcmyk(82.4%, 63%, 0%, 53.3%)
CIE-LABlab(21.18, 21.15, -45.35)
CIE-LCHlch(21.18, 50.04, 295.00°)
OKLaboklab(32.85% -0.009 -0.1311)
OKLCHoklch(32.85% 0.131 266.1)
XYZxyz(4.5385, 3.2922, 17.8454)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C77 #776015
analogous
#155D77 #152C77 #2F1577
triadic
#152C77 #77152C #2C7715
tetradic
#152C77 #77155D #776015 #15772F
square
#152C77 #77155D #776015 #15772F
split-complementary
#152C77 #772F15 #5D7715
monochromatic
#050A1A #0C1943 #152C77 #1E3FAB #2D55DA

Accessibility & contrast

On white

12.66
#152C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C77
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C77#FFFFFF#000000##FFFFFF
##152C771.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152c77;
/* rgb */ color: rgb(21, 44, 119);
/* oklch */ color: oklch(32.8% 0.131 266.1);
Tailwind
colors: {
  custom: {
    50: '#65649f',
    500: '#152c77',
    950: '#000000',
  },
}
SCSS
$custom: #152c77;
$custom-light: #65649f;
$custom-dark: #000000;
JSON
{
  "hex": "#152c77",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 225.918,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.13143,
    "h": 266.1
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#152C77
secondary
#AD923B
accent
#C33BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152C77

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

Preview Lab → · Contrast checker → · Palette generator →

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