#152872#152872

#152872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.129 H 267.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#152872
RGBrgb(21, 40, 114)
HSLhsl(228, 69%, 26%)
HSVhsv(228, 82%, 45%)
CMYKcmyk(81.6%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.60, 21.95, -44.72)
CIE-LCHlch(19.60, 49.82, 296.15°)
OKLaboklab(31.54% -0.0064 -0.1293)
OKLCHoklch(31.54% 0.129 267.2)
XYZxyz(4.1043, 2.8915, 16.2581)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152872 #725F15
analogous
#155772 #152872 #311572
triadic
#152872 #721528 #287215
tetradic
#152872 #721557 #725F15 #157231
square
#152872 #721557 #725F15 #157231
split-complementary
#152872 #723115 #577215
monochromatic
#05091A #0B163E #152872 #1F3AA6 #2A4DD8

Accessibility & contrast

On white

13.30
#152872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152872
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152872#FFFFFF#000000##FFFFFF
##1528721.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152872;
/* rgb */ color: rgb(21, 40, 114);
/* oklch */ color: oklch(31.5% 0.129 267.2);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#152872',
    950: '#000000',
  },
}
SCSS
$custom: #152872;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#152872",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 227.742,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31536,
    "c": 0.12949,
    "h": 267.2
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#152872
secondary
#A8923B
accent
#C83CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152872

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

Preview Lab → · Contrast checker → · Palette generator →

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