#2D1276#2D1276

#2D1276 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.154 H 284.9°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2D1276
RGBrgb(45, 18, 118)
HSLhsl(256, 74%, 27%)
HSVhsv(256, 85%, 46%)
CMYKcmyk(61.9%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.98, 39.63, -51.54)
CIE-LCHlch(16.98, 65.01, 307.55°)
OKLaboklab(30.24% 0.0394 -0.1485)
OKLCHoklch(30.24% 0.154 284.9)
XYZxyz(4.5675, 2.2982, 17.3389)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1276 #5B7612
analogous
#122976 #2D1276 #5F1276
triadic
#2D1276 #762D12 #12762D
tetradic
#2D1276 #761229 #5B7612 #12765F
square
#2D1276 #761229 #5B7612 #12765F
split-complementary
#2D1276 #765F12 #297612
monochromatic
#0A041B #190A41 #2D1276 #411AAB #5725DE

Accessibility & contrast

On white

14.39
#2D1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2D1276#FFFFFF#000000##FFFFFF
##2D12761.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)
#002D79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1276;
/* rgb */ color: rgb(45, 18, 118);
/* oklch */ color: oklch(30.2% 0.154 284.9);
Tailwind
colors: {
  custom: {
    50: '#71559f',
    500: '#2d1276',
    950: '#000000',
  },
}
SCSS
$custom: #2d1276;
$custom-light: #71559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1276",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 256.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.15368,
    "h": 284.9
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#2D1276
secondary
#8DAD37
accent
#F038BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1276

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

Preview Lab → · Contrast checker → · Palette generator →

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