#291970#291970

#291970 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.140 H 282.4°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#291970
RGBrgb(41, 25, 112)
HSLhsl(251, 64%, 27%)
HSVhsv(251, 78%, 44%)
CMYKcmyk(63.4%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.16, 33.63, -47.38)
CIE-LCHlch(17.16, 58.11, 305.37°)
OKLaboklab(30.07% 0.03 -0.1366)
OKLCHoklch(30.07% 0.14 282.4)
XYZxyz(4.1858, 2.3362, 15.5565)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291970 #607019
analogous
#193570 #291970 #551970
triadic
#291970 #702919 #197029
tetradic
#291970 #701935 #607019 #197055
square
#291970 #701935 #607019 #197055
split-complementary
#291970 #705519 #357019
monochromatic
#090619 #170E3E #291970 #3B24A2 #4F32D1

Accessibility & contrast

On white

14.31
#291970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291970
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291970#FFFFFF#000000##FFFFFF
##2919701.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.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: #291970;
/* rgb */ color: rgb(41, 25, 112);
/* oklch */ color: oklch(30.1% 0.140 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d589a',
    500: '#291970',
    950: '#000000',
  },
}
SCSS
$custom: #291970;
$custom-light: #6d589a;
$custom-dark: #000000;
JSON
{
  "hex": "#291970",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 251.034,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30068,
    "c": 0.13986,
    "h": 282.4
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#291970
secondary
#93A540
accent
#E741C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291970

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

Preview Lab → · Contrast checker → · Palette generator →

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