#152156#152156

#152156 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.097 H 269.3°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#152156
RGBrgb(21, 33, 86)
HSLhsl(229, 61%, 21%)
HSVhsv(229, 76%, 34%)
CMYKcmyk(75.6%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.06, 15.48, -33.70)
CIE-LCHlch(15.06, 37.09, 294.66°)
OKLaboklab(27.36% -0.0012 -0.0971)
OKLCHoklch(27.36% 0.097 269.3)
XYZxyz(2.5323, 1.9188, 9.0392)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152156 #564A15
analogous
#154156 #152156 #291556
triadic
#152156 #561521 #215615
tetradic
#152156 #561541 #564A15 #155629
square
#152156 #561541 #564A15 #155629
split-complementary
#152156 #562915 #415615
monochromatic
#060919 #090E25 #152156 #213487 #2D47B8

Accessibility & contrast

On white

15.18
#152156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152156
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152156#FFFFFF#000000##FFFFFF
##1521561.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152156;
/* rgb */ color: rgb(21, 33, 86);
/* oklch */ color: oklch(27.4% 0.097 269.3);
Tailwind
colors: {
  custom: {
    50: '#5c5b86',
    500: '#152156',
    950: '#000000',
  },
}
SCSS
$custom: #152156;
$custom-light: #5c5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#152156",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 228.923,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2736,
    "c": 0.0971,
    "h": 269.3
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#152156
secondary
#8E7E39
accent
#C644E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #152156

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

Preview Lab → · Contrast checker → · Palette generator →

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