#152151#152151

#152151 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.089 H 269.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#152151
RGBrgb(21, 33, 81)
HSLhsl(228, 59%, 20%)
HSVhsv(228, 74%, 32%)
CMYKcmyk(74.1%, 59.3%, 0%, 68.2%)
CIE-LABlab(14.63, 13.38, -31.01)
CIE-LCHlch(14.63, 33.78, 293.35°)
OKLaboklab(26.91% -0.0015 -0.0892)
OKLCHoklch(26.91% 0.089 269)
XYZxyz(2.3378, 1.8410, 8.0151)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152151 #514515
analogous
#153F51 #152151 #271551
triadic
#152151 #511521 #215115
tetradic
#152151 #51153F #514515 #155127
square
#152151 #51153F #514515 #155127
split-complementary
#152151 #512715 #3F5115
monochromatic
#060A18 #080D20 #152151 #223582 #2E49B2

Accessibility & contrast

On white

15.35
#152151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#152151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152151
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152151#FFFFFF#000000##FFFFFF
##1521511.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012853
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #152151;
/* rgb */ color: rgb(21, 33, 81);
/* oklch */ color: oklch(26.9% 0.089 269.0);
Tailwind
colors: {
  custom: {
    50: '#5b5b82',
    500: '#152151',
    950: '#000000',
  },
}
SCSS
$custom: #152151;
$custom-light: #5b5b82;
$custom-dark: #000000;
JSON
{
  "hex": "#152151",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 228,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.26907,
    "c": 0.08918,
    "h": 269
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#152151
secondary
#897939
accent
#C346E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #152151

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

Preview Lab → · Contrast checker → · Palette generator →

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