#152176#152176

#152176 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.144 H 269.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#152176
RGBrgb(21, 33, 118)
HSLhsl(233, 70%, 27%)
HSVhsv(233, 82%, 46%)
CMYKcmyk(82.2%, 72%, 0%, 53.7%)
CIE-LABlab(18.16, 28.41, -49.65)
CIE-LCHlch(18.16, 57.21, 299.78°)
OKLaboklab(30.6% -0.0025 -0.1438)
OKLCHoklch(30.6% 0.144 269)
XYZxyz(4.1220, 2.5547, 17.4119)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152176 #766A15
analogous
#155276 #152176 #391576
triadic
#152176 #761521 #217615
tetradic
#152176 #761552 #766A15 #157639
square
#152176 #761552 #766A15 #157639
split-complementary
#152176 #763915 #527615
monochromatic
#05071A #0C1242 #152176 #1E30AA #2C41D9

Accessibility & contrast

On white

13.90
#152176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152176
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152176#FFFFFF#000000##FFFFFF
##1521761.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152176;
/* rgb */ color: rgb(21, 33, 118);
/* oklch */ color: oklch(30.6% 0.144 269.0);
Tailwind
colors: {
  custom: {
    50: '#655c9e',
    500: '#152176',
    950: '#000000',
  },
}
SCSS
$custom: #152176;
$custom-light: #655c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#152176",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 232.577,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30603,
    "c": 0.14382,
    "h": 269
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#152176
secondary
#AC9E3B
accent
#D73BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #152176

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

Preview Lab → · Contrast checker → · Palette generator →

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