#152E77#152E77

#152E77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.129 H 265.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#152E77
RGBrgb(21, 46, 119)
HSLhsl(225, 70%, 27%)
HSVhsv(225, 82%, 47%)
CMYKcmyk(82.4%, 61.3%, 0%, 53.3%)
CIE-LABlab(21.74, 19.72, -44.43)
CIE-LCHlch(21.74, 48.61, 293.93°)
OKLaboklab(33.27% -0.0104 -0.1284)
OKLCHoklch(33.27% 0.129 265.4)
XYZxyz(4.6149, 3.4448, 17.8709)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E77 #775E15
analogous
#155F77 #152E77 #2D1577
triadic
#152E77 #77152E #2E7715
tetradic
#152E77 #77155F #775E15 #15772D
square
#152E77 #77155F #775E15 #15772D
split-complementary
#152E77 #772D15 #5F7715
monochromatic
#050A1A #0C1A43 #152E77 #1E42AB #2D59DA

Accessibility & contrast

On white

12.43
#152E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E77
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E77#FFFFFF#000000##FFFFFF
##152E771.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152e77;
/* rgb */ color: rgb(21, 46, 119);
/* oklch */ color: oklch(33.3% 0.129 265.4);
Tailwind
colors: {
  custom: {
    50: '#64669f',
    500: '#152e77',
    950: '#000000',
  },
}
SCSS
$custom: #152e77;
$custom-light: #64669f;
$custom-dark: #000000;
JSON
{
  "hex": "#152e77",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 224.694,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.1288,
    "h": 265.4
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#152E77
secondary
#AD903B
accent
#BF3BED
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152E77

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

Preview Lab → · Contrast checker → · Palette generator →

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