#2D1D70#2D1D70

#2D1D70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.135 H 284.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1D70
RGBrgb(45, 29, 112)
HSLhsl(252, 59%, 28%)
HSVhsv(252, 74%, 44%)
CMYKcmyk(59.8%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.39, 31.90, -45.34)
CIE-LCHlch(18.39, 55.44, 305.13°)
OKLaboklab(31.04% 0.033 -0.1305)
OKLCHoklch(31.04% 0.135 284.2)
XYZxyz(4.4453, 2.6062, 15.5949)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D70 #60701D
analogous
#1D3770 #2D1D70 #561D70
triadic
#2D1D70 #702D1D #1D702D
tetradic
#2D1D70 #701D37 #60701D #1D7056
square
#2D1D70 #701D37 #60701D #1D7056
split-complementary
#2D1D70 #70561D #37701D
monochromatic
#0A0618 #19103F #2D1D70 #412AA1 #573BCC

Accessibility & contrast

On white

13.80
#2D1D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D70
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D70#FFFFFF#000000##FFFFFF
##2D1D701.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#0A3344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1d70;
/* rgb */ color: rgb(45, 29, 112);
/* oklch */ color: oklch(31.0% 0.135 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e5b9a',
    500: '#2d1d70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d70;
$custom-light: #6e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d70",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 251.566,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.13462,
    "h": 284.2
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#2D1D70
secondary
#92A444
accent
#E246C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1D70

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

Preview Lab → · Contrast checker → · Palette generator →

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