#2D1472#2D1472

#2D1472 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.147 H 285.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2D1472
RGBrgb(45, 20, 114)
HSLhsl(256, 70%, 26%)
HSVhsv(256, 82%, 45%)
CMYKcmyk(60.5%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.86, 37.47, -49.16)
CIE-LCHlch(16.86, 61.82, 307.32°)
OKLaboklab(30.02% 0.0395 -0.1416)
OKLCHoklch(30.02% 0.147 285.6)
XYZxyz(4.3687, 2.2728, 16.1248)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1472 #597214
analogous
#142A72 #2D1472 #5C1472
triadic
#2D1472 #722D14 #14722D
tetradic
#2D1472 #72142A #597214 #14725C
square
#2D1472 #72142A #597214 #14725C
split-complementary
#2D1472 #725C14 #2A7214
monochromatic
#0A051A #180B3E #2D1472 #421DA6 #5727D9

Accessibility & contrast

On white

14.44
#2D1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1472
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1472#FFFFFF#000000##FFFFFF
##2D14721.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#083043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1472;
/* rgb */ color: rgb(45, 20, 114);
/* oklch */ color: oklch(30.0% 0.147 285.6);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2d1472',
    950: '#000000',
  },
}
SCSS
$custom: #2d1472;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1472",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 255.957,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30021,
    "c": 0.14704,
    "h": 285.6
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#2D1472
secondary
#8BA839
accent
#ED3BBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1472

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

Preview Lab → · Contrast checker → · Palette generator →

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