#2D1473#2D1473

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

Color values

HEX#2D1473
RGBrgb(45, 20, 115)
HSLhsl(256, 70%, 26%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(60.9%, 82.6%, 0%, 54.9%)
CIE-LABlab(16.97, 37.78, -49.63)
CIE-LCHlch(16.97, 62.37, 307.28°)
OKLaboklab(30.13% 0.0392 -0.143)
OKLCHoklch(30.13% 0.148 285.3)
XYZxyz(4.4259, 2.2957, 16.4262)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1473 #5A7314
analogous
#142B73 #2D1473 #5D1473
triadic
#2D1473 #732D14 #14732D
tetradic
#2D1473 #73142B #5A7314 #14735D
square
#2D1473 #73142B #5A7314 #14735D
split-complementary
#2D1473 #735D14 #2B7314
monochromatic
#0A051A #190B3F #2D1473 #411DA7 #5728DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1473#FFFFFF#000000##FFFFFF
##2D14731.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)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#063044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1473;
/* rgb */ color: rgb(45, 20, 115);
/* oklch */ color: oklch(30.1% 0.148 285.3);
Tailwind
colors: {
  custom: {
    50: '#70569c',
    500: '#2d1473',
    950: '#000000',
  },
}
SCSS
$custom: #2d1473;
$custom-light: #70569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1473",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 255.789,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3013,
    "c": 0.14826,
    "h": 285.3
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1473

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

Preview Lab → · Contrast checker → · Palette generator →

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