#291996#291996

#291996 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.187 H 275.9°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#291996
RGBrgb(41, 25, 150)
HSLhsl(248, 71%, 34%)
HSVhsv(248, 83%, 59%)
CMYKcmyk(72.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(21.46, 45.74, -64.30)
CIE-LCHlch(21.46, 78.91, 305.43°)
OKLaboklab(34.34% 0.0192 -0.1859)
OKLCHoklch(34.34% 0.187 275.9)
XYZxyz(6.7653, 3.3680, 29.1418)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291996 #869619
analogous
#194896 #291996 #681996
triadic
#291996 #962919 #199629
tetradic
#291996 #961948 #869619 #199668
square
#291996 #961948 #869619 #199668
split-complementary
#291996 #966819 #489619
monochromatic
#0C082D #1B1062 #291996 #3722CA #5C49E1

Accessibility & contrast

On white

12.55
#291996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#291996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291996
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291996#FFFFFF#000000##FFFFFF
##2919961.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291996;
/* rgb */ color: rgb(41, 25, 150);
/* oklch */ color: oklch(34.3% 0.187 275.9);
Tailwind
colors: {
  custom: {
    50: '#755ab6',
    500: '#291996',
    950: '#000000',
  },
}
SCSS
$custom: #291996;
$custom-light: #755ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#291996",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 247.68,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34338,
    "c": 0.18685,
    "h": 275.9
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#291996
secondary
#B3C249
accent
#EE3AD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291996

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

Preview Lab → · Contrast checker → · Palette generator →

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