#151176#151176

#151176 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.160 H 271.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#151176
RGBrgb(21, 17, 118)
HSLhsl(242, 75%, 26%)
HSVhsv(242, 86%, 46%)
CMYKcmyk(82.2%, 85.6%, 0%, 53.7%)
CIE-LABlab(14.78, 37.98, -55.25)
CIE-LCHlch(14.78, 67.05, 304.51°)
OKLaboklab(28.2% 0.0035 -0.1599)
OKLCHoklch(28.2% 0.16 271.2)
XYZxyz(3.7786, 1.8679, 17.2974)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151176 #727611
analogous
#114076 #151176 #481176
triadic
#151176 #761511 #117615
tetradic
#151176 #761140 #727611 #117648
square
#151176 #761140 #727611 #117648
split-complementary
#151176 #764811 #407611
monochromatic
#05041B #0B0941 #151176 #1F19AB #2A22DF

Accessibility & contrast

On white

15.29
#151176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151176
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151176#FFFFFF#000000##FFFFFF
##1511761.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002074
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151176;
/* rgb */ color: rgb(21, 17, 118);
/* oklch */ color: oklch(28.2% 0.160 271.2);
Tailwind
colors: {
  custom: {
    50: '#67529f',
    500: '#151176',
    950: '#000000',
  },
}
SCSS
$custom: #151176;
$custom-light: #67529f;
$custom-dark: #000000;
JSON
{
  "hex": "#151176",
  "rgb": {
    "r": 21,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 242.376,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28202,
    "c": 0.15994,
    "h": 271.2
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#151176
secondary
#A8AD36
accent
#F136EA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #151176

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

Preview Lab → · Contrast checker → · Palette generator →

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