#2D1973#2D1973

#2D1973 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.143 H 284.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2D1973
RGBrgb(45, 25, 115)
HSLhsl(253, 64%, 27%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(60.9%, 78.3%, 0%, 54.9%)
CIE-LABlab(17.88, 35.18, -48.13)
CIE-LCHlch(17.88, 59.61, 306.16°)
OKLaboklab(30.76% 0.0356 -0.1387)
OKLCHoklch(30.76% 0.143 284.4)
XYZxyz(4.5234, 2.4907, 16.4587)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1973 #5F7319
analogous
#193273 #2D1973 #5A1973
triadic
#2D1973 #732D19 #19732D
tetradic
#2D1973 #731932 #5F7319 #19735A
square
#2D1973 #731932 #5F7319 #19735A
split-complementary
#2D1973 #735A19 #327319
monochromatic
#0A0519 #190E41 #2D1973 #4124A5 #5734D3

Accessibility & contrast

On white

14.02
#2D1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1973
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1973#FFFFFF#000000##FFFFFF
##2D19731.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#053245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1973;
/* rgb */ color: rgb(45, 25, 115);
/* oklch */ color: oklch(30.8% 0.143 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f589c',
    500: '#2d1973',
    950: '#000000',
  },
}
SCSS
$custom: #2d1973;
$custom-light: #6f589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1973",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 253.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30765,
    "c": 0.14315,
    "h": 284.4
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#2D1973
secondary
#91A840
accent
#E741C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1973

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

Preview Lab → · Contrast checker → · Palette generator →

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