#152E63#152E63

#152E63 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.099 H 263.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#152E63
RGBrgb(21, 46, 99)
HSLhsl(221, 65%, 24%)
HSVhsv(221, 79%, 39%)
CMYKcmyk(78.8%, 53.5%, 0%, 61.2%)
CIE-LABlab(20.10, 11.34, -34.17)
CIE-LCHlch(20.10, 36.00, 288.36°)
OKLaboklab(31.51% -0.0121 -0.0982)
OKLCHoklch(31.51% 0.099 263)
XYZxyz(3.5376, 3.0139, 12.1973)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E63 #634A15
analogous
#155563 #152E63 #231563
triadic
#152E63 #63152E #2E6315
tetradic
#152E63 #631555 #634A15 #156323
square
#152E63 #631555 #634A15 #156323
split-complementary
#152E63 #632315 #556315
monochromatic
#050C19 #0A1731 #152E63 #204595 #2A5DC8

Accessibility & contrast

On white

13.10
#152E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#152E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E63
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E63#FFFFFF#000000##FFFFFF
##152E631.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3465
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152e63;
/* rgb */ color: rgb(21, 46, 99);
/* oklch */ color: oklch(31.5% 0.099 263.0);
Tailwind
colors: {
  custom: {
    50: '#5f6690',
    500: '#152e63',
    950: '#000000',
  },
}
SCSS
$custom: #152e63;
$custom-light: #5f6690;
$custom-dark: #000000;
JSON
{
  "hex": "#152e63",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 99
  },
  "hsl": {
    "h": 220.769,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31509,
    "c": 0.09897,
    "h": 263
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#152E63
secondary
#9A7B3A
accent
#B240E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152E63

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

Preview Lab → · Contrast checker → · Palette generator →

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