#152B5C#152B5C

#152B5C is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.092 H 263.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#152B5C
RGBrgb(21, 43, 92)
HSLhsl(221, 63%, 22%)
HSVhsv(221, 77%, 36%)
CMYKcmyk(77.2%, 53.3%, 0%, 63.9%)
CIE-LABlab(18.63, 10.58, -31.94)
CIE-LCHlch(18.63, 33.64, 288.32°)
OKLaboklab(30.21% -0.0102 -0.0917)
OKLCHoklch(30.21% 0.092 263.6)
XYZxyz(3.1042, 2.6596, 10.4729)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5C #5C4615
analogous
#154F5C #152B5C #22155C
triadic
#152B5C #5C152B #2B5C15
tetradic
#152B5C #5C154F #5C4615 #155C22
square
#152B5C #5C154F #5C4615 #155C22
split-complementary
#152B5C #5C2215 #4F5C15
monochromatic
#060C19 #0A142A #152B5C #20428E #2C5AC0

Accessibility & contrast

On white

13.71
#152B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152B5C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5C#FFFFFF#000000##FFFFFF
##152B5C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F315E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152b5c;
/* rgb */ color: rgb(21, 43, 92);
/* oklch */ color: oklch(30.2% 0.092 263.6);
Tailwind
colors: {
  custom: {
    50: '#5d638a',
    500: '#152b5c',
    950: '#000000',
  },
}
SCSS
$custom: #152b5c;
$custom-light: #5d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5c",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 92
  },
  "hsl": {
    "h": 221.408,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30215,
    "c": 0.09229,
    "h": 263.6
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#152B5C
secondary
#937839
accent
#B342E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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