#152F65#152F65

#152F65 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.101 H 262.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#152F65
RGBrgb(21, 47, 101)
HSLhsl(221, 66%, 24%)
HSVhsv(221, 79%, 40%)
CMYKcmyk(79.2%, 53.5%, 0%, 60.4%)
CIE-LABlab(20.56, 11.46, -34.73)
CIE-LCHlch(20.56, 36.57, 288.26°)
OKLaboklab(31.91% -0.0127 -0.0999)
OKLCHoklch(31.91% 0.101 262.7)
XYZxyz(3.6739, 3.1316, 12.7202)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F65 #654B15
analogous
#155765 #152F65 #231565
triadic
#152F65 #65152F #2F6515
tetradic
#152F65 #651557 #654B15 #156523
square
#152F65 #651557 #654B15 #156523
split-complementary
#152F65 #652315 #576515
monochromatic
#050C19 #0A1732 #152F65 #204798 #2A5ECA

Accessibility & contrast

On white

12.91
#152F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F65
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F65#FFFFFF#000000##FFFFFF
##152F651.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3567
Deuteranopia (green-blind)
#002E64
Tritanopia (blue-blind)
#003C45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152f65;
/* rgb */ color: rgb(21, 47, 101);
/* oklch */ color: oklch(31.9% 0.101 262.7);
Tailwind
colors: {
  custom: {
    50: '#5f6791',
    500: '#152f65',
    950: '#000000',
  },
}
SCSS
$custom: #152f65;
$custom-light: #5f6791;
$custom-dark: #000000;
JSON
{
  "hex": "#152f65",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 101
  },
  "hsl": {
    "h": 220.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31912,
    "c": 0.10067,
    "h": 262.7
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#152F65
secondary
#9C7C3A
accent
#B23FE9
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #152F65

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

Preview Lab → · Contrast checker → · Palette generator →

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