#152B5E#152B5E

#152B5E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.095 H 264.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#152B5E
RGBrgb(21, 43, 94)
HSLhsl(222, 63%, 23%)
HSVhsv(222, 78%, 37%)
CMYKcmyk(77.7%, 54.3%, 0%, 63.1%)
CIE-LABlab(18.78, 11.42, -33.01)
CIE-LCHlch(18.78, 34.93, 289.08°)
OKLaboklab(30.38% -0.01 -0.0949)
OKLCHoklch(30.38% 0.095 264)
XYZxyz(3.1928, 2.6950, 10.9394)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5E #5E4815
analogous
#154F5E #152B5E #24155E
triadic
#152B5E #5E152B #2B5E15
tetradic
#152B5E #5E154F #5E4815 #155E24
square
#152B5E #5E154F #5E4815 #155E24
split-complementary
#152B5E #5E2415 #4F5E15
monochromatic
#060B19 #0A142C #152B5E #204290 #2B59C2

Accessibility & contrast

On white

13.65
#152B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152B5E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5E#FFFFFF#000000##FFFFFF
##152B5E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152b5e;
/* rgb */ color: rgb(21, 43, 94);
/* oklch */ color: oklch(30.4% 0.095 264.0);
Tailwind
colors: {
  custom: {
    50: '#5e638c',
    500: '#152b5e',
    950: '#000000',
  },
}
SCSS
$custom: #152b5e;
$custom-light: #5e638c;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5e",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 94
  },
  "hsl": {
    "h": 221.918,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3038,
    "c": 0.09541,
    "h": 264
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#152B5E
secondary
#957A39
accent
#B541E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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