#152174#152174

#152174 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.141 H 269.0°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#152174
RGBrgb(21, 33, 116)
HSLhsl(232, 69%, 27%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.9%, 71.6%, 0%, 54.5%)
CIE-LABlab(17.95, 27.63, -48.72)
CIE-LCHlch(17.95, 56.01, 299.56°)
OKLaboklab(30.39% -0.0023 -0.1411)
OKLCHoklch(30.39% 0.141 269)
XYZxyz(4.0044, 2.5076, 16.7926)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152174 #746815
analogous
#155174 #152174 #391574
triadic
#152174 #741521 #217415
tetradic
#152174 #741551 #746815 #157439
square
#152174 #741551 #746815 #157439
split-complementary
#152174 #743915 #517415
monochromatic
#05071A #0C1240 #152174 #1E30A8 #2B41D9

Accessibility & contrast

On white

13.99
#152174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#152174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152174
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152174#FFFFFF#000000##FFFFFF
##1521741.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152174;
/* rgb */ color: rgb(21, 33, 116);
/* oklch */ color: oklch(30.4% 0.141 269.0);
Tailwind
colors: {
  custom: {
    50: '#655c9d',
    500: '#152174',
    950: '#000000',
  },
}
SCSS
$custom: #152174;
$custom-light: #655c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#152174",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 232.421,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30386,
    "c": 0.14109,
    "h": 269
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#152174
secondary
#AA9C3B
accent
#D63CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #152174

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

Preview Lab → · Contrast checker → · Palette generator →

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