#152D56#152D56

#152D56 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.080 H 260.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#152D56
RGBrgb(21, 45, 86)
HSLhsl(218, 61%, 21%)
HSVhsv(218, 76%, 34%)
CMYKcmyk(75.6%, 47.7%, 0%, 66.3%)
CIE-LABlab(18.83, 6.57, -27.61)
CIE-LCHlch(18.83, 28.38, 283.39°)
OKLaboklab(30.23% -0.0134 -0.079)
OKLCHoklch(30.23% 0.08 260.4)
XYZxyz(2.9268, 2.7078, 9.1707)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D56 #563E15
analogous
#154D56 #152D56 #1D1556
triadic
#152D56 #56152D #2D5615
tetradic
#152D56 #56154D #563E15 #15561D
square
#152D56 #56154D #563E15 #15561D
split-complementary
#152D56 #561D15 #4D5615
monochromatic
#060D19 #091325 #152D56 #214787 #2D60B8

Accessibility & contrast

On white

13.62
#152D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D56
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D56#FFFFFF#000000##FFFFFF
##152D561.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193158
Deuteranopia (green-blind)
#0D2B55
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152d56;
/* rgb */ color: rgb(21, 45, 86);
/* oklch */ color: oklch(30.2% 0.080 260.4);
Tailwind
colors: {
  custom: {
    50: '#5c6586',
    500: '#152d56',
    950: '#000000',
  },
}
SCSS
$custom: #152d56;
$custom-light: #5c6586;
$custom-dark: #000000;
JSON
{
  "hex": "#152d56",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 86
  },
  "hsl": {
    "h": 217.846,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30234,
    "c": 0.08008,
    "h": 260.4
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#152D56
secondary
#8E6E39
accent
#A944E4
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #152D56

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

Preview Lab → · Contrast checker → · Palette generator →

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