#152B5A#152B5A

#152B5A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.089 H 263.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#152B5A
RGBrgb(21, 43, 90)
HSLhsl(221, 62%, 22%)
HSVhsv(221, 77%, 35%)
CMYKcmyk(76.7%, 52.2%, 0%, 64.7%)
CIE-LABlab(18.48, 9.73, -30.85)
CIE-LCHlch(18.48, 32.35, 287.50°)
OKLaboklab(30.05% -0.0105 -0.0885)
OKLCHoklch(30.05% 0.089 263.2)
XYZxyz(3.0179, 2.6251, 10.0185)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5A #5A4415
analogous
#154E5A #152B5A #22155A
triadic
#152B5A #5A152B #2B5A15
tetradic
#152B5A #5A154E #5A4415 #155A22
square
#152B5A #5A154E #5A4415 #155A22
split-complementary
#152B5A #5A2215 #4E5A15
monochromatic
#060C19 #091328 #152B5A #21438C #2C5ABD

Accessibility & contrast

On white

13.77
#152B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152B5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B5A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5A#FFFFFF#000000##FFFFFF
##152B5A1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11305C
Deuteranopia (green-blind)
#012A59
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152b5a;
/* rgb */ color: rgb(21, 43, 90);
/* oklch */ color: oklch(30.1% 0.089 263.2);
Tailwind
colors: {
  custom: {
    50: '#5d6389',
    500: '#152b5a',
    950: '#000000',
  },
}
SCSS
$custom: #152b5a;
$custom-light: #5d6389;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5a",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 90
  },
  "hsl": {
    "h": 220.87,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30051,
    "c": 0.08915,
    "h": 263.2
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#152B5A
secondary
#927539
accent
#B143E5
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #152B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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