#2D1975#2D1975

#2D1975 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.146 H 283.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1975
RGBrgb(45, 25, 117)
HSLhsl(253, 65%, 28%)
HSVhsv(253, 79%, 46%)
CMYKcmyk(61.5%, 78.6%, 0%, 54.1%)
CIE-LABlab(18.09, 35.81, -49.08)
CIE-LCHlch(18.09, 60.75, 306.12°)
OKLaboklab(30.98% 0.035 -0.1414)
OKLCHoklch(30.98% 0.146 283.9)
XYZxyz(4.6397, 2.5372, 17.0714)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1975 #617519
analogous
#193375 #2D1975 #5B1975
triadic
#2D1975 #752D19 #19752D
tetradic
#2D1975 #751933 #617519 #19755B
square
#2D1975 #751933 #617519 #19755B
split-complementary
#2D1975 #755B19 #337519
monochromatic
#0A0519 #1A0E43 #2D1975 #4024A7 #5735D4

Accessibility & contrast

On white

13.93
#2D1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1975
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1975#FFFFFF#000000##FFFFFF
##2D19751.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#013346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1975;
/* rgb */ color: rgb(45, 25, 117);
/* oklch */ color: oklch(31.0% 0.146 283.9);
Tailwind
colors: {
  custom: {
    50: '#70589e',
    500: '#2d1975',
    950: '#000000',
  },
}
SCSS
$custom: #2d1975;
$custom-light: #70589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1975",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 253.043,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30975,
    "c": 0.14569,
    "h": 283.9
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#2D1975
secondary
#93AA40
accent
#E840C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1975

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

Preview Lab → · Contrast checker → · Palette generator →

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