#291792#291792

#291792 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.184 H 276.6°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#291792
RGBrgb(41, 23, 146)
HSLhsl(249, 73%, 33%)
HSVhsv(249, 84%, 57%)
CMYKcmyk(71.9%, 84.2%, 0%, 42.7%)
CIE-LABlab(20.67, 45.44, -63.14)
CIE-LCHlch(20.67, 77.79, 305.74°)
OKLaboklab(33.65% 0.0212 -0.1824)
OKLCHoklch(33.65% 0.184 276.6)
XYZxyz(6.4075, 3.1589, 27.4606)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291792 #809217
analogous
#174392 #291792 #661792
triadic
#291792 #922917 #179229
tetradic
#291792 #921743 #809217 #179266
square
#291792 #921743 #809217 #179266
split-complementary
#291792 #926617 #439217
monochromatic
#0B0628 #1A0F5D #291792 #381FC7 #5942E1

Accessibility & contrast

On white

12.87
#291792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#291792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291792
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291792#FFFFFF#000000##FFFFFF
##2917921.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003795
Deuteranopia (green-blind)
#002C90
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291792;
/* rgb */ color: rgb(41, 23, 146);
/* oklch */ color: oklch(33.7% 0.184 276.6);
Tailwind
colors: {
  custom: {
    50: '#7559b3',
    500: '#291792',
    950: '#000000',
  },
}
SCSS
$custom: #291792;
$custom-light: #7559b3;
$custom-dark: #000000;
JSON
{
  "hex": "#291792",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 248.78,
    "s": 72.781,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.18367,
    "h": 276.6
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#291792
secondary
#AFC243
accent
#EF38D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291792

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

Preview Lab → · Contrast checker → · Palette generator →

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