#291868#291868

#291868 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 284.6°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#291868
RGBrgb(41, 24, 104)
HSLhsl(253, 63%, 25%)
HSVhsv(253, 77%, 41%)
CMYKcmyk(60.6%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.12, 31.58, -43.86)
CIE-LCHlch(16.12, 54.05, 305.75°)
OKLaboklab(29.08% 0.0329 -0.1263)
OKLCHoklch(29.08% 0.131 284.6)
XYZxyz(3.7390, 2.1239, 13.3070)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291868 #576818
analogous
#182F68 #291868 #511868
triadic
#291868 #682918 #186829
tetradic
#291868 #68182F #576818 #186851
square
#291868 #68182F #576818 #186851
split-complementary
#291868 #685118 #2F6818
monochromatic
#0A0619 #150D36 #291868 #3D239A #502FCB

Accessibility & contrast

On white

14.74
#291868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291868
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291868#FFFFFF#000000##FFFFFF
##2918681.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#082E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291868;
/* rgb */ color: rgb(41, 24, 104);
/* oklch */ color: oklch(29.1% 0.131 284.6);
Tailwind
colors: {
  custom: {
    50: '#6b5794',
    500: '#291868',
    950: '#000000',
  },
}
SCSS
$custom: #291868;
$custom-light: #6b5794;
$custom-dark: #000000;
JSON
{
  "hex": "#291868",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 252.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29083,
    "c": 0.13051,
    "h": 284.6
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#291868
secondary
#8A9E3E
accent
#E642C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291868

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

Preview Lab → · Contrast checker → · Palette generator →

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