#291865#291865

#291865 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.127 H 285.4°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#291865
RGBrgb(41, 24, 101)
HSLhsl(253, 62%, 25%)
HSVhsv(253, 76%, 40%)
CMYKcmyk(59.4%, 76.2%, 0%, 60.4%)
CIE-LABlab(15.82, 30.59, -42.39)
CIE-LCHlch(15.82, 52.28, 305.82°)
OKLaboklab(28.77% 0.0336 -0.122)
OKLCHoklch(28.77% 0.127 285.4)
XYZxyz(3.5893, 2.0641, 12.5187)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291865 #546518
analogous
#182E65 #291865 #501865
triadic
#291865 #652918 #186529
tetradic
#291865 #65182E #546518 #186550
square
#291865 #65182E #546518 #186550
split-complementary
#291865 #655018 #2E6518
monochromatic
#0A0619 #150C34 #291865 #3D2496 #5130C8

Accessibility & contrast

On white

14.86
#291865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#291865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291865
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291865#FFFFFF#000000##FFFFFF
##2918651.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#0D2D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291865;
/* rgb */ color: rgb(41, 24, 101);
/* oklch */ color: oklch(28.8% 0.127 285.4);
Tailwind
colors: {
  custom: {
    50: '#6b5792',
    500: '#291865',
    950: '#000000',
  },
}
SCSS
$custom: #291865;
$custom-light: #6b5792;
$custom-dark: #000000;
JSON
{
  "hex": "#291865",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 253.247,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28774,
    "c": 0.12653,
    "h": 285.4
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#291865
secondary
#879B3E
accent
#E543C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291865

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

Preview Lab → · Contrast checker → · Palette generator →

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