#152F56#152F56

#152F56 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.7% C 0.077 H 258.4°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#152F56
RGBrgb(21, 47, 86)
HSLhsl(216, 61%, 21%)
HSVhsv(216, 76%, 34%)
CMYKcmyk(75.6%, 45.3%, 0%, 66.3%)
CIE-LABlab(19.49, 5.12, -26.56)
CIE-LCHlch(19.49, 27.05, 280.92°)
OKLaboklab(30.74% -0.0155 -0.0758)
OKLCHoklch(30.74% 0.077 258.4)
XYZxyz(3.0049, 2.8640, 9.1967)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F56 #563C15
analogous
#154F56 #152F56 #1B1556
triadic
#152F56 #56152F #2F5615
tetradic
#152F56 #56154F #563C15 #15561B
square
#152F56 #56154F #563C15 #15561B
split-complementary
#152F56 #561B15 #4F5615
monochromatic
#060D19 #091425 #152F56 #214A87 #2D65B8

Accessibility & contrast

On white

13.35
#152F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F56
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F56#FFFFFF#000000##FFFFFF
##152F561.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3258
Deuteranopia (green-blind)
#122C55
Tritanopia (blue-blind)
#00383E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152f56;
/* rgb */ color: rgb(21, 47, 86);
/* oklch */ color: oklch(30.7% 0.077 258.4);
Tailwind
colors: {
  custom: {
    50: '#5c6786',
    500: '#152f56',
    950: '#000000',
  },
}
SCSS
$custom: #152f56;
$custom-light: #5c6786;
$custom-dark: #000000;
JSON
{
  "hex": "#152f56",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 86
  },
  "hsl": {
    "h": 216,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30743,
    "c": 0.07741,
    "h": 258.4
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#152F56
secondary
#8E6C39
accent
#A444E4
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #152F56

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

Preview Lab → · Contrast checker → · Palette generator →

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