#2D1181#2D1181

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

Color values

HEX#2D1181
RGBrgb(45, 17, 129)
HSLhsl(255, 77%, 29%)
HSVhsv(255, 87%, 51%)
CMYKcmyk(65.1%, 86.8%, 0%, 49.4%)
CIE-LABlab(18.11, 43.30, -56.70)
CIE-LCHlch(18.11, 71.34, 307.37°)
OKLaboklab(31.39% 0.0359 -0.1635)
OKLCHoklch(31.39% 0.167 282.4)
XYZxyz(5.2438, 2.5434, 20.9792)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1181 #658111
analogous
#112D81 #2D1181 #651181
triadic
#2D1181 #812D11 #11812D
tetradic
#2D1181 #81112D #658111 #118165
square
#2D1181 #81112D #658111 #118165
split-complementary
#2D1181 #816511 #2D8111
monochromatic
#09041B #1A0A4B #2D1181 #4018B7 #582AE3

Accessibility & contrast

On white

13.92
#2D1181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D1181#FFFFFF#000000##FFFFFF
##2D11811.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)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1181;
/* rgb */ color: rgb(45, 17, 129);
/* oklch */ color: oklch(31.4% 0.167 282.4);
Tailwind
colors: {
  custom: {
    50: '#7355a7',
    500: '#2d1181',
    950: '#000000',
  },
}
SCSS
$custom: #2d1181;
$custom-light: #7355a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1181",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 255,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31394,
    "c": 0.16742,
    "h": 282.4
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#2D1181
secondary
#97B737
accent
#F335C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1181

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

Preview Lab → · Contrast checker → · Palette generator →

#2D1181 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva