#152251#152251

#152251 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.088 H 268.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#152251
RGBrgb(21, 34, 81)
HSLhsl(227, 59%, 20%)
HSVhsv(227, 74%, 32%)
CMYKcmyk(74.1%, 58%, 0%, 68.2%)
CIE-LABlab(14.94, 12.64, -30.51)
CIE-LCHlch(14.94, 33.02, 292.50°)
OKLaboklab(27.14% -0.0025 -0.0877)
OKLCHoklch(27.14% 0.088 268.4)
XYZxyz(2.3660, 1.8973, 8.0245)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152251 #514415
analogous
#154051 #152251 #261551
triadic
#152251 #511522 #225115
tetradic
#152251 #511540 #514415 #155126
square
#152251 #511540 #514415 #155126
split-complementary
#152251 #512615 #405115
monochromatic
#060A18 #080E20 #152251 #223682 #2E4BB2

Accessibility & contrast

On white

15.22
#152251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#152251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152251
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152251#FFFFFF#000000##FFFFFF
##1522511.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042853
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152251;
/* rgb */ color: rgb(21, 34, 81);
/* oklch */ color: oklch(27.1% 0.088 268.4);
Tailwind
colors: {
  custom: {
    50: '#5b5c82',
    500: '#152251',
    950: '#000000',
  },
}
SCSS
$custom: #152251;
$custom-light: #5b5c82;
$custom-dark: #000000;
JSON
{
  "hex": "#152251",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 81
  },
  "hsl": {
    "h": 227,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.2714,
    "c": 0.08772,
    "h": 268.4
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#152251
secondary
#897839
accent
#C046E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #152251

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

Preview Lab → · Contrast checker → · Palette generator →

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