#152F63#152F63

#152F63 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.098 H 262.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#152F63
RGBrgb(21, 47, 99)
HSLhsl(220, 65%, 24%)
HSVhsv(220, 79%, 39%)
CMYKcmyk(78.8%, 52.5%, 0%, 61.2%)
CIE-LABlab(20.41, 10.61, -33.67)
CIE-LCHlch(20.41, 35.30, 287.49°)
OKLaboklab(31.75% -0.013 -0.0967)
OKLCHoklch(31.75% 0.098 262.3)
XYZxyz(3.5771, 3.0929, 12.2104)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F63 #634915
analogous
#155663 #152F63 #221563
triadic
#152F63 #63152F #2F6315
tetradic
#152F63 #631556 #634915 #156322
square
#152F63 #631556 #634915 #156322
split-complementary
#152F63 #632215 #566315
monochromatic
#050C19 #0A1731 #152F63 #204795 #2A5FC8

Accessibility & contrast

On white

12.97
#152F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F63
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F63#FFFFFF#000000##FFFFFF
##152F631.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113565
Deuteranopia (green-blind)
#002E62
Tritanopia (blue-blind)
#003B44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152f63;
/* rgb */ color: rgb(21, 47, 99);
/* oklch */ color: oklch(31.7% 0.098 262.3);
Tailwind
colors: {
  custom: {
    50: '#5f6790',
    500: '#152f63',
    950: '#000000',
  },
}
SCSS
$custom: #152f63;
$custom-light: #5f6790;
$custom-dark: #000000;
JSON
{
  "hex": "#152f63",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 99
  },
  "hsl": {
    "h": 220,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31748,
    "c": 0.0976,
    "h": 262.3
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#152F63
secondary
#9A7A3A
accent
#B040E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F63

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

Preview Lab → · Contrast checker → · Palette generator →

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