#291881#291881

#291881 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.162 H 279.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#291881
RGBrgb(41, 24, 129)
HSLhsl(250, 69%, 30%)
HSVhsv(250, 81%, 51%)
CMYKcmyk(68.2%, 81.4%, 0%, 49.4%)
CIE-LABlab(18.84, 39.67, -55.51)
CIE-LCHlch(18.84, 68.23, 305.55°)
OKLaboklab(31.8% 0.0259 -0.1603)
OKLCHoklch(31.8% 0.162 279.2)
XYZxyz(5.2023, 2.7092, 21.0134)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291881 #708118
analogous
#183C81 #291881 #5D1881
triadic
#291881 #812918 #188129
tetradic
#291881 #81183C #708118 #18815D
square
#291881 #81183C #708118 #18815D
split-complementary
#291881 #815D18 #3C8118
monochromatic
#08051A #190E4D #291881 #3922B5 #5339DA

Accessibility & contrast

On white

13.62
#291881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#291881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291881
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291881#FFFFFF#000000##FFFFFF
##2918811.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291881;
/* rgb */ color: rgb(41, 24, 129);
/* oklch */ color: oklch(31.8% 0.162 279.2);
Tailwind
colors: {
  custom: {
    50: '#7158a7',
    500: '#291881',
    950: '#000000',
  },
}
SCSS
$custom: #291881;
$custom-light: #7158a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291881",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 249.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31802,
    "c": 0.16238,
    "h": 279.2
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#291881
secondary
#A2B540
accent
#EB3CCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291881

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

Preview Lab → · Contrast checker → · Palette generator →

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