#29167E#29167E

#29167E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.161 H 280.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#29167E
RGBrgb(41, 22, 126)
HSLhsl(251, 70%, 29%)
HSVhsv(251, 83%, 49%)
CMYKcmyk(67.5%, 82.5%, 0%, 50.6%)
CIE-LABlab(18.15, 39.73, -54.75)
CIE-LCHlch(18.15, 67.64, 305.97°)
OKLaboklab(31.22% 0.0279 -0.158)
OKLCHoklch(31.22% 0.161 280)
XYZxyz(4.9661, 2.5512, 19.9653)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29167E #6B7E16
analogous
#16377E #29167E #5D167E
triadic
#29167E #7E2916 #167E29
tetradic
#29167E #7E1637 #6B7E16 #167E5D
square
#29167E #7E1637 #6B7E16 #167E5D
split-complementary
#29167E #7E5D16 #377E16
monochromatic
#08051A #180D4A #29167E #3A1FB2 #5233DB

Accessibility & contrast

On white

13.90
#29167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#29167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #29167E
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##29167E#FFFFFF#000000##FFFFFF
##29167E1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #29167e;
/* rgb */ color: rgb(41, 22, 126);
/* oklch */ color: oklch(31.2% 0.161 280.0);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#29167e',
    950: '#000000',
  },
}
SCSS
$custom: #29167e;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#29167e",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 250.962,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3122,
    "c": 0.1605,
    "h": 280
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#29167E
secondary
#9DB33D
accent
#ED3BCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #29167E

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

Preview Lab → · Contrast checker → · Palette generator →

#29167E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva