#152C54#152C54

#152C54 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.078 H 260.6°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#152C54
RGBrgb(21, 44, 84)
HSLhsl(218, 60%, 21%)
HSVhsv(218, 75%, 33%)
CMYKcmyk(75%, 47.6%, 0%, 67.1%)
CIE-LABlab(18.37, 6.46, -27.02)
CIE-LCHlch(18.37, 27.78, 283.45°)
OKLaboklab(29.83% -0.0127 -0.0772)
OKLCHoklch(29.83% 0.078 260.6)
XYZxyz(2.8096, 2.6006, 8.7397)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C54 #543D15
analogous
#154B54 #152C54 #1D1554
triadic
#152C54 #54152C #2C5415
tetradic
#152C54 #54154B #543D15 #15541D
square
#152C54 #54154B #543D15 #15541D
split-complementary
#152C54 #541D15 #4B5415
monochromatic
#060D18 #091223 #152C54 #214685 #2D5FB6

Accessibility & contrast

On white

13.81
#152C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#152C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C54
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C54#FFFFFF#000000##FFFFFF
##152C541.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193056
Deuteranopia (green-blind)
#0E2A53
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152c54;
/* rgb */ color: rgb(21, 44, 84);
/* oklch */ color: oklch(29.8% 0.078 260.6);
Tailwind
colors: {
  custom: {
    50: '#5b6484',
    500: '#152c54',
    950: '#000000',
  },
}
SCSS
$custom: #152c54;
$custom-light: #5b6484;
$custom-dark: #000000;
JSON
{
  "hex": "#152c54",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 84
  },
  "hsl": {
    "h": 218.095,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2983,
    "c": 0.07827,
    "h": 260.6
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#152C54
secondary
#8C6E39
accent
#A945E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152C54

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

Preview Lab → · Contrast checker → · Palette generator →

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