#152D63#152D63

#152D63 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.100 H 263.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#152D63
RGBrgb(21, 45, 99)
HSLhsl(222, 65%, 24%)
HSVhsv(222, 79%, 39%)
CMYKcmyk(78.8%, 54.5%, 0%, 61.2%)
CIE-LABlab(19.79, 12.07, -34.67)
CIE-LCHlch(19.79, 36.71, 289.19°)
OKLaboklab(31.27% -0.0112 -0.0997)
OKLCHoklch(31.27% 0.1 263.6)
XYZxyz(3.4990, 2.9367, 12.1844)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D63 #634B15
analogous
#155463 #152D63 #241563
triadic
#152D63 #63152D #2D6315
tetradic
#152D63 #631554 #634B15 #156324
square
#152D63 #631554 #634B15 #156324
split-complementary
#152D63 #632415 #546315
monochromatic
#050B19 #0A1631 #152D63 #204495 #2A5BC8

Accessibility & contrast

On white

13.23
#152D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D63
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D63#FFFFFF#000000##FFFFFF
##152D631.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3465
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152d63;
/* rgb */ color: rgb(21, 45, 99);
/* oklch */ color: oklch(31.3% 0.100 263.6);
Tailwind
colors: {
  custom: {
    50: '#5f6590',
    500: '#152d63',
    950: '#000000',
  },
}
SCSS
$custom: #152d63;
$custom-light: #5f6590;
$custom-dark: #000000;
JSON
{
  "hex": "#152d63",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 99
  },
  "hsl": {
    "h": 221.538,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31272,
    "c": 0.10035,
    "h": 263.6
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#152D63
secondary
#9A7C3A
accent
#B440E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D63

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

Preview Lab → · Contrast checker → · Palette generator →

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