#291283#291283

#291283 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.170 H 279.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#291283
RGBrgb(41, 18, 131)
HSLhsl(252, 76%, 29%)
HSVhsv(252, 86%, 51%)
CMYKcmyk(68.7%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.11, 43.11, -57.99)
CIE-LCHlch(18.11, 72.26, 306.63°)
OKLaboklab(31.37% 0.0282 -0.1674)
OKLCHoklch(31.37% 0.17 279.6)
XYZxyz(5.2262, 2.5423, 21.6836)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291283 #6C8312
analogous
#123483 #291283 #621283
triadic
#291283 #832912 #128329
tetradic
#291283 #831234 #6C8312 #128362
square
#291283 #831234 #6C8312 #128362
split-complementary
#291283 #836212 #348312
monochromatic
#08041B #180B4D #291283 #3A19B9 #522DE2

Accessibility & contrast

On white

13.92
#291283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#291283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291283
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291283#FFFFFF#000000##FFFFFF
##2912831.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002881
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291283;
/* rgb */ color: rgb(41, 18, 131);
/* oklch */ color: oklch(31.4% 0.170 279.6);
Tailwind
colors: {
  custom: {
    50: '#7255a8',
    500: '#291283',
    950: '#000000',
  },
}
SCSS
$custom: #291283;
$custom-light: #7255a8;
$custom-dark: #000000;
JSON
{
  "hex": "#291283",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 252.212,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31366,
    "c": 0.16976,
    "h": 279.6
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#291283
secondary
#9EB838
accent
#F235CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291283

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

Preview Lab → · Contrast checker → · Palette generator →

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