#152C56#152C56

#152C56 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.081 H 261.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#152C56
RGBrgb(21, 44, 86)
HSLhsl(219, 61%, 21%)
HSVhsv(219, 76%, 34%)
CMYKcmyk(75.6%, 48.8%, 0%, 66.3%)
CIE-LABlab(18.51, 7.31, -28.13)
CIE-LCHlch(18.51, 29.07, 284.56°)
OKLaboklab(29.98% -0.0123 -0.0805)
OKLCHoklch(29.98% 0.081 261.3)
XYZxyz(2.8891, 2.6324, 9.1581)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C56 #563F15
analogous
#154C56 #152C56 #1E1556
triadic
#152C56 #56152C #2C5615
tetradic
#152C56 #56154C #563F15 #15561E
square
#152C56 #56154C #563F15 #15561E
split-complementary
#152C56 #561E15 #4C5615
monochromatic
#060D19 #091325 #152C56 #214587 #2D5EB8

Accessibility & contrast

On white

13.76
#152C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C56
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C56#FFFFFF#000000##FFFFFF
##152C561.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173058
Deuteranopia (green-blind)
#0B2A55
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152c56;
/* rgb */ color: rgb(21, 44, 86);
/* oklch */ color: oklch(30.0% 0.081 261.3);
Tailwind
colors: {
  custom: {
    50: '#5c6486',
    500: '#152c56',
    950: '#000000',
  },
}
SCSS
$custom: #152c56;
$custom-light: #5c6486;
$custom-dark: #000000;
JSON
{
  "hex": "#152c56",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 86
  },
  "hsl": {
    "h": 218.769,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29983,
    "c": 0.08144,
    "h": 261.3
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#152C56
secondary
#8E7039
accent
#AB44E4
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152C56

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

Preview Lab → · Contrast checker → · Palette generator →

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