#2D1574#2D1574

#2D1574 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.149 H 284.9°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#2D1574
RGBrgb(45, 21, 116)
HSLhsl(255, 69%, 27%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(61.2%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.25, 37.59, -49.81)
CIE-LCHlch(17.25, 62.40, 307.04°)
OKLaboklab(30.36% 0.0382 -0.1435)
OKLCHoklch(30.36% 0.149 284.9)
XYZxyz(4.5018, 2.3549, 16.7369)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1574 #5C7415
analogous
#152D74 #2D1574 #5D1574
triadic
#2D1574 #742D15 #15742D
tetradic
#2D1574 #74152D #5C7415 #15745D
square
#2D1574 #74152D #5C7415 #15745D
split-complementary
#2D1574 #745D15 #2D7415
monochromatic
#0A051A #190C40 #2D1574 #411EA8 #572BD9

Accessibility & contrast

On white

14.28
#2D1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1574
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1574#FFFFFF#000000##FFFFFF
##2D15741.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.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: #2d1574;
/* rgb */ color: rgb(45, 21, 116);
/* oklch */ color: oklch(30.4% 0.149 284.9);
Tailwind
colors: {
  custom: {
    50: '#70569d',
    500: '#2d1574',
    950: '#000000',
  },
}
SCSS
$custom: #2d1574;
$custom-light: #70569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1574",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 255.158,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30358,
    "c": 0.14851,
    "h": 284.9
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#2D1574
secondary
#8EAA3B
accent
#EC3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1574

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

Preview Lab → · Contrast checker → · Palette generator →

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