#2D1474#2D1474

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

Color values

HEX#2D1474
RGBrgb(45, 20, 116)
HSLhsl(256, 71%, 27%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(61.2%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.08, 38.08, -50.09)
CIE-LCHlch(17.08, 62.92, 307.24°)
OKLaboklab(30.24% 0.0389 -0.1443)
OKLCHoklch(30.24% 0.149 285.1)
XYZxyz(4.4838, 2.3189, 16.7309)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1474 #5B7414
analogous
#142B74 #2D1474 #5D1474
triadic
#2D1474 #742D14 #14742D
tetradic
#2D1474 #74142B #5B7414 #14745D
square
#2D1474 #74142B #5B7414 #14745D
split-complementary
#2D1474 #745D14 #2B7414
monochromatic
#0A051A #190B40 #2D1474 #411DA8 #5728DA

Accessibility & contrast

On white

14.35
#2D1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1474
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1474#FFFFFF#000000##FFFFFF
##2D14741.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#043144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1474;
/* rgb */ color: rgb(45, 20, 116);
/* oklch */ color: oklch(30.2% 0.149 285.1);
Tailwind
colors: {
  custom: {
    50: '#70569d',
    500: '#2d1474',
    950: '#000000',
  },
}
SCSS
$custom: #2d1474;
$custom-light: #70569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1474",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 255.625,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3024,
    "c": 0.14947,
    "h": 285.1
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2D1474
secondary
#8DAA3A
accent
#ED3ABF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1474

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

Preview Lab → · Contrast checker → · Palette generator →

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