#152C5A#152C5A

#152C5A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.088 H 262.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#152C5A
RGBrgb(21, 44, 90)
HSLhsl(220, 62%, 22%)
HSVhsv(220, 77%, 35%)
CMYKcmyk(76.7%, 51.1%, 0%, 64.7%)
CIE-LABlab(18.79, 8.99, -30.34)
CIE-LCHlch(18.79, 31.64, 286.51°)
OKLaboklab(30.3% -0.0115 -0.087)
OKLCHoklch(30.3% 0.088 262.4)
XYZxyz(3.0547, 2.6987, 10.0308)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C5A #5A4315
analogous
#154F5A #152C5A #21155A
triadic
#152C5A #5A152C #2C5A15
tetradic
#152C5A #5A154F #5A4315 #155A21
square
#152C5A #5A154F #5A4315 #155A21
split-complementary
#152C5A #5A2115 #4F5A15
monochromatic
#060C19 #091428 #152C5A #21448C #2C5DBD

Accessibility & contrast

On white

13.64
#152C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152C5A
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C5A#FFFFFF#000000##FFFFFF
##152C5A1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13315C
Deuteranopia (green-blind)
#042B59
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152c5a;
/* rgb */ color: rgb(21, 44, 90);
/* oklch */ color: oklch(30.3% 0.088 262.4);
Tailwind
colors: {
  custom: {
    50: '#5d6489',
    500: '#152c5a',
    950: '#000000',
  },
}
SCSS
$custom: #152c5a;
$custom-light: #5d6489;
$custom-dark: #000000;
JSON
{
  "hex": "#152c5a",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 90
  },
  "hsl": {
    "h": 220,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30296,
    "c": 0.08775,
    "h": 262.4
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#152C5A
secondary
#927439
accent
#AF43E5
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #152C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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