#2D1E70#2D1E70

#2D1E70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.133 H 283.9°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2D1E70
RGBrgb(45, 30, 112)
HSLhsl(251, 58%, 28%)
HSVhsv(251, 73%, 44%)
CMYKcmyk(59.8%, 73.2%, 0%, 56.1%)
CIE-LABlab(18.61, 31.30, -44.99)
CIE-LCHlch(18.61, 54.81, 304.83°)
OKLaboklab(31.19% 0.0321 -0.1295)
OKLCHoklch(31.19% 0.133 283.9)
XYZxyz(4.4702, 2.6560, 15.6032)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E70 #61701E
analogous
#1E3870 #2D1E70 #561E70
triadic
#2D1E70 #702D1E #1E702D
tetradic
#2D1E70 #701E38 #61701E #1E7056
square
#2D1E70 #701E38 #61701E #1E7056
split-complementary
#2D1E70 #70561E #38701E
monochromatic
#0A0618 #1A1140 #2D1E70 #402BA0 #573DCB

Accessibility & contrast

On white

13.71
#2D1E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E70
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E70#FFFFFF#000000##FFFFFF
##2D1E701.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#0A3444
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1e70;
/* rgb */ color: rgb(45, 30, 112);
/* oklch */ color: oklch(31.2% 0.133 283.9);
Tailwind
colors: {
  custom: {
    50: '#6e5b9a',
    500: '#2d1e70',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e70;
$custom-light: #6e5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e70",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 112
  },
  "hsl": {
    "h": 250.976,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31193,
    "c": 0.1334,
    "h": 283.9
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#2D1E70
secondary
#93A446
accent
#E147C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1E70

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

Preview Lab → · Contrast checker → · Palette generator →

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