#152B77#152B77

#152B77 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.133 H 266.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#152B77
RGBrgb(21, 43, 119)
HSLhsl(227, 70%, 27%)
HSVhsv(227, 82%, 47%)
CMYKcmyk(82.4%, 63.9%, 0%, 53.3%)
CIE-LABlab(20.90, 21.86, -45.81)
CIE-LCHlch(20.90, 50.75, 295.51°)
OKLaboklab(32.64% -0.0084 -0.1325)
OKLCHoklch(32.64% 0.133 266.4)
XYZxyz(4.5017, 3.2186, 17.8332)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B77 #776115
analogous
#155C77 #152B77 #301577
triadic
#152B77 #77152B #2B7715
tetradic
#152B77 #77155C #776115 #157730
square
#152B77 #77155C #776115 #157730
split-complementary
#152B77 #773015 #5C7715
monochromatic
#05091A #0C1843 #152B77 #1E3EAB #2D53DA

Accessibility & contrast

On white

12.78
#152B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#152B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B77
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B77#FFFFFF#000000##FFFFFF
##152B771.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152b77;
/* rgb */ color: rgb(21, 43, 119);
/* oklch */ color: oklch(32.6% 0.133 266.4);
Tailwind
colors: {
  custom: {
    50: '#65649f',
    500: '#152b77',
    950: '#000000',
  },
}
SCSS
$custom: #152b77;
$custom-light: #65649f;
$custom-dark: #000000;
JSON
{
  "hex": "#152b77",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 226.531,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3264,
    "c": 0.13274,
    "h": 266.4
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#152B77
secondary
#AD933B
accent
#C53BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050F
muted
#7A797E

Preview Lab

Preview with #152B77

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

Preview Lab → · Contrast checker → · Palette generator →

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