#291870#291870

#291870 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.141 H 282.6°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#291870
RGBrgb(41, 24, 112)
HSLhsl(252, 65%, 27%)
HSVhsv(252, 79%, 44%)
CMYKcmyk(63.4%, 78.6%, 0%, 56.1%)
CIE-LABlab(16.96, 34.20, -47.71)
CIE-LCHlch(16.96, 58.70, 305.63°)
OKLaboklab(29.93% 0.0308 -0.1375)
OKLCHoklch(29.93% 0.141 282.6)
XYZxyz(4.1648, 2.2942, 15.5495)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291870 #5F7018
analogous
#183370 #291870 #551870
triadic
#291870 #702918 #187029
tetradic
#291870 #701833 #5F7018 #187055
square
#291870 #701833 #5F7018 #187055
split-complementary
#291870 #705518 #337018
monochromatic
#090519 #170D3E #291870 #3B23A2 #4F30D3

Accessibility & contrast

On white

14.39
#291870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#291870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291870
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291870#FFFFFF#000000##FFFFFF
##2918701.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291870;
/* rgb */ color: rgb(41, 24, 112);
/* oklch */ color: oklch(29.9% 0.141 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d579a',
    500: '#291870',
    950: '#000000',
  },
}
SCSS
$custom: #291870;
$custom-light: #6d579a;
$custom-dark: #000000;
JSON
{
  "hex": "#291870",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 251.591,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29927,
    "c": 0.14095,
    "h": 282.6
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#291870
secondary
#92A53E
accent
#E840C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291870

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

Preview Lab → · Contrast checker → · Palette generator →

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