#2D1972#2D1972

#2D1972 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.142 H 284.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1972
RGBrgb(45, 25, 114)
HSLhsl(253, 64%, 27%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(60.5%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.77, 34.86, -47.66)
CIE-LCHlch(17.77, 59.04, 306.18°)
OKLaboklab(30.66% 0.0358 -0.1373)
OKLCHoklch(30.66% 0.142 284.6)
XYZxyz(4.4662, 2.4678, 16.1573)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1972 #5E7219
analogous
#193272 #2D1972 #5A1972
triadic
#2D1972 #722D19 #19722D
tetradic
#2D1972 #721932 #5E7219 #19725A
square
#2D1972 #721932 #5E7219 #19725A
split-complementary
#2D1972 #725A19 #327219
monochromatic
#0A0619 #190E40 #2D1972 #4124A4 #5733D2

Accessibility & contrast

On white

14.06
#2D1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1972
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1972#FFFFFF#000000##FFFFFF
##2D19721.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#073244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1972;
/* rgb */ color: rgb(45, 25, 114);
/* oklch */ color: oklch(30.7% 0.142 284.6);
Tailwind
colors: {
  custom: {
    50: '#6f589b',
    500: '#2d1972',
    950: '#000000',
  },
}
SCSS
$custom: #2d1972;
$custom-light: #6f589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1972",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 253.483,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3066,
    "c": 0.14187,
    "h": 284.6
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2D1972
secondary
#90A740
accent
#E741C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1972

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

Preview Lab → · Contrast checker → · Palette generator →

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