#291998#291998

#291998 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.189 H 275.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#291998
RGBrgb(41, 25, 152)
HSLhsl(248, 72%, 35%)
HSVhsv(248, 84%, 60%)
CMYKcmyk(73%, 83.6%, 0%, 40.4%)
CIE-LABlab(21.70, 46.36, -65.14)
CIE-LCHlch(21.70, 79.95, 305.44°)
OKLaboklab(34.57% 0.0186 -0.1883)
OKLCHoklch(34.57% 0.189 275.6)
XYZxyz(6.9277, 3.4330, 29.9972)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291998 #889819
analogous
#194998 #291998 #691998
triadic
#291998 #982919 #199829
tetradic
#291998 #981949 #889819 #199869
square
#291998 #981949 #889819 #199869
split-complementary
#291998 #986919 #499819
monochromatic
#0D082F #1B1063 #291998 #3722CD #5D4AE1

Accessibility & contrast

On white

12.45
#291998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#291998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291998
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291998#FFFFFF#000000##FFFFFF
##2919981.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002E96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291998;
/* rgb */ color: rgb(41, 25, 152);
/* oklch */ color: oklch(34.6% 0.189 275.6);
Tailwind
colors: {
  custom: {
    50: '#765ab8',
    500: '#291998',
    950: '#000000',
  },
}
SCSS
$custom: #291998;
$custom-light: #765ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#291998",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 247.559,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34573,
    "c": 0.18921,
    "h": 275.6
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#291998
secondary
#B4C34A
accent
#EE39D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291998

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

Preview Lab → · Contrast checker → · Palette generator →

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