#152F5B#152F5B

#152F5B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.085 H 260.2°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#152F5B
RGBrgb(21, 47, 91)
HSLhsl(218, 63%, 22%)
HSVhsv(218, 77%, 36%)
CMYKcmyk(76.9%, 48.4%, 0%, 64.3%)
CIE-LABlab(19.83, 7.23, -29.34)
CIE-LCHlch(19.83, 30.21, 283.84°)
OKLaboklab(31.12% -0.0144 -0.084)
OKLCHoklch(31.12% 0.085 260.2)
XYZxyz(3.2134, 2.9474, 10.2951)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5B #5B4115
analogous
#15525B #152F5B #1E155B
triadic
#152F5B #5B152F #2F5B15
tetradic
#152F5B #5B1552 #5B4115 #155B1E
square
#152F5B #5B1552 #5B4115 #155B1E
split-complementary
#152F5B #5B1E15 #525B15
monochromatic
#060D19 #0A1529 #152F5B #20498D #2C62BE

Accessibility & contrast

On white

13.21
#152F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F5B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5B#FFFFFF#000000##FFFFFF
##152F5B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335D
Deuteranopia (green-blind)
#0B2D5A
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152f5b;
/* rgb */ color: rgb(21, 47, 91);
/* oklch */ color: oklch(31.1% 0.085 260.2);
Tailwind
colors: {
  custom: {
    50: '#5d678a',
    500: '#152f5b',
    950: '#000000',
  },
}
SCSS
$custom: #152f5b;
$custom-light: #5d678a;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5b",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 217.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31117,
    "c": 0.08521,
    "h": 260.2
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#152F5B
secondary
#927139
accent
#A942E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #152F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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