#152D5C#152D5C

#152D5C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.090 H 262.2°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#152D5C
RGBrgb(21, 45, 92)
HSLhsl(220, 63%, 22%)
HSVhsv(220, 77%, 36%)
CMYKcmyk(77.2%, 51.1%, 0%, 63.9%)
CIE-LABlab(19.26, 9.11, -30.91)
CIE-LCHlch(19.26, 32.23, 286.41°)
OKLaboklab(30.7% -0.0122 -0.0887)
OKLCHoklch(30.7% 0.09 262.2)
XYZxyz(3.1787, 2.8086, 10.4977)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D5C #5C4415
analogous
#15515C #152D5C #20155C
triadic
#152D5C #5C152D #2D5C15
tetradic
#152D5C #5C1551 #5C4415 #155C20
square
#152D5C #5C1551 #5C4415 #155C20
split-complementary
#152D5C #5C2015 #515C15
monochromatic
#060C19 #0A152A #152D5C #20458E #2C5EC0

Accessibility & contrast

On white

13.45
#152D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D5C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D5C#FFFFFF#000000##FFFFFF
##152D5C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14325E
Deuteranopia (green-blind)
#032C5B
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152d5c;
/* rgb */ color: rgb(21, 45, 92);
/* oklch */ color: oklch(30.7% 0.090 262.2);
Tailwind
colors: {
  custom: {
    50: '#5d658a',
    500: '#152d5c',
    950: '#000000',
  },
}
SCSS
$custom: #152d5c;
$custom-light: #5d658a;
$custom-dark: #000000;
JSON
{
  "hex": "#152d5c",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 92
  },
  "hsl": {
    "h": 219.718,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.307,
    "c": 0.08951,
    "h": 262.2
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#152D5C
secondary
#937539
accent
#AE42E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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