#152247#152247

#152247 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.3% C 0.071 H 266.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#152247
RGBrgb(21, 34, 71)
HSLhsl(224, 54%, 18%)
HSVhsv(224, 70%, 28%)
CMYKcmyk(70.4%, 52.1%, 0%, 72.2%)
CIE-LABlab(14.16, 8.44, -24.91)
CIE-LCHlch(14.16, 26.30, 288.72°)
OKLaboklab(26.3% -0.0038 -0.0712)
OKLCHoklch(26.3% 0.071 266.9)
XYZxyz(2.0182, 1.7582, 6.1930)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152247 #473A15
analogous
#153B47 #152247 #211547
triadic
#152247 #471522 #224715
tetradic
#152247 #47153B #473A15 #154721
square
#152247 #47153B #473A15 #154721
split-complementary
#152247 #472115 #3B4715
monochromatic
#070B18 #070B18 #152247 #233976 #314FA5

Accessibility & contrast

On white

15.54
#152247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#152247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152247
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152247#FFFFFF#000000##FFFFFF
##1522471.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102648
Deuteranopia (green-blind)
#072246
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #152247;
/* rgb */ color: rgb(21, 34, 71);
/* oklch */ color: oklch(26.3% 0.071 266.9);
Tailwind
colors: {
  custom: {
    50: '#585c7a',
    500: '#152247',
    950: '#000000',
  },
}
SCSS
$custom: #152247;
$custom-light: #585c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#152247",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 224.4,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26303,
    "c": 0.0713,
    "h": 266.9
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#152247
secondary
#7F6D39
accent
#B74ADE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #152247

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

Preview Lab → · Contrast checker → · Palette generator →

#152247 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva