#2D1974#2D1974

#2D1974 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.144 H 284.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1974
RGBrgb(45, 25, 116)
HSLhsl(253, 65%, 28%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(61.2%, 78.4%, 0%, 54.5%)
CIE-LABlab(17.98, 35.49, -48.60)
CIE-LCHlch(17.98, 60.18, 306.14°)
OKLaboklab(30.87% 0.0353 -0.14)
OKLCHoklch(30.87% 0.144 284.1)
XYZxyz(4.5812, 2.5138, 16.7634)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1974 #607419
analogous
#193274 #2D1974 #5B1974
triadic
#2D1974 #742D19 #19742D
tetradic
#2D1974 #741932 #607419 #19745B
square
#2D1974 #741932 #607419 #19745B
split-complementary
#2D1974 #745B19 #327419
monochromatic
#0A0519 #190E42 #2D1974 #4124A6 #5734D3

Accessibility & contrast

On white

13.97
#2D1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1974
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1974#FFFFFF#000000##FFFFFF
##2D19741.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#033345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1974;
/* rgb */ color: rgb(45, 25, 116);
/* oklch */ color: oklch(30.9% 0.144 284.1);
Tailwind
colors: {
  custom: {
    50: '#70589d',
    500: '#2d1974',
    950: '#000000',
  },
}
SCSS
$custom: #2d1974;
$custom-light: #70589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1974",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 253.187,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3087,
    "c": 0.14442,
    "h": 284.1
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#2D1974
secondary
#92A940
accent
#E840C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1974

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

Preview Lab → · Contrast checker → · Palette generator →

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