#291981#291981

#291981 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.161 H 279.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#291981
RGBrgb(41, 25, 129)
HSLhsl(249, 68%, 30%)
HSVhsv(249, 81%, 51%)
CMYKcmyk(68.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(19.02, 39.15, -55.21)
CIE-LCHlch(19.02, 67.69, 305.34°)
OKLaboklab(31.93% 0.0254 -0.1594)
OKLCHoklch(31.93% 0.161 279)
XYZxyz(5.2233, 2.7512, 21.0204)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291981 #718119
analogous
#193D81 #291981 #5D1981
triadic
#291981 #812919 #198129
tetradic
#291981 #81193D #718119 #19815D
square
#291981 #81193D #718119 #19815D
split-complementary
#291981 #815D19 #3D8119
monochromatic
#08051A #190F4E #291981 #3923B4 #543BD9

Accessibility & contrast

On white

13.54
#291981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291981
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291981#FFFFFF#000000##FFFFFF
##2919811.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291981;
/* rgb */ color: rgb(41, 25, 129);
/* oklch */ color: oklch(31.9% 0.161 279.0);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#291981',
    950: '#000000',
  },
}
SCSS
$custom: #291981;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291981",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 249.231,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31927,
    "c": 0.16145,
    "h": 279
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#291981
secondary
#A3B541
accent
#EA3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291981

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

Preview Lab → · Contrast checker → · Palette generator →

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