#152F61#152F61

#152F61 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.095 H 261.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#152F61
RGBrgb(21, 47, 97)
HSLhsl(219, 64%, 23%)
HSVhsv(219, 78%, 38%)
CMYKcmyk(78.4%, 51.5%, 0%, 62%)
CIE-LABlab(20.26, 9.76, -32.60)
CIE-LCHlch(20.26, 34.03, 286.68°)
OKLaboklab(31.59% -0.0133 -0.0936)
OKLCHoklch(31.59% 0.095 261.9)
XYZxyz(3.4827, 3.0551, 11.7131)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F61 #614715
analogous
#155561 #152F61 #211561
triadic
#152F61 #61152F #2F6115
tetradic
#152F61 #611555 #614715 #156121
square
#152F61 #611555 #614715 #156121
split-complementary
#152F61 #612115 #556115
monochromatic
#050C19 #0A172F #152F61 #204793 #2B60C6

Accessibility & contrast

On white

13.03
#152F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F61
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F61#FFFFFF#000000##FFFFFF
##152F611.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133563
Deuteranopia (green-blind)
#002E60
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152f61;
/* rgb */ color: rgb(21, 47, 97);
/* oklch */ color: oklch(31.6% 0.095 261.9);
Tailwind
colors: {
  custom: {
    50: '#5e678e',
    500: '#152f61',
    950: '#000000',
  },
}
SCSS
$custom: #152f61;
$custom-light: #5e678e;
$custom-dark: #000000;
JSON
{
  "hex": "#152f61",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 97
  },
  "hsl": {
    "h": 219.474,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31587,
    "c": 0.09453,
    "h": 261.9
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#152F61
secondary
#98783A
accent
#AE40E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F61

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

Preview Lab → · Contrast checker → · Palette generator →

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