#291990#291990

#291990 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.180 H 276.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#291990
RGBrgb(41, 25, 144)
HSLhsl(248, 70%, 33%)
HSVhsv(248, 83%, 56%)
CMYKcmyk(71.5%, 82.6%, 0%, 43.5%)
CIE-LABlab(20.75, 43.89, -61.76)
CIE-LCHlch(20.75, 75.77, 305.40°)
OKLaboklab(33.64% 0.021 -0.1785)
OKLCHoklch(33.64% 0.18 276.7)
XYZxyz(6.2945, 3.1797, 26.6622)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291990 #809019
analogous
#194490 #291990 #641990
triadic
#291990 #902919 #199029
tetradic
#291990 #901944 #809019 #199064
square
#291990 #901944 #809019 #199064
split-complementary
#291990 #906419 #449019
monochromatic
#0B0728 #1A105C #291990 #3822C4 #5945DF

Accessibility & contrast

On white

12.84
#291990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#291990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291990
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291990#FFFFFF#000000##FFFFFF
##2919901.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291990;
/* rgb */ color: rgb(41, 25, 144);
/* oklch */ color: oklch(33.6% 0.180 276.7);
Tailwind
colors: {
  custom: {
    50: '#745ab2',
    500: '#291990',
    950: '#000000',
  },
}
SCSS
$custom: #291990;
$custom-light: #745ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#291990",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 248.067,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33639,
    "c": 0.17972,
    "h": 276.7
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#291990
secondary
#AFC045
accent
#ED3BD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291990

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

Preview Lab → · Contrast checker → · Palette generator →

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