#2D1070#2D1070

#2D1070 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.148 H 286.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2D1070
RGBrgb(45, 16, 112)
HSLhsl(258, 75%, 25%)
HSVhsv(258, 86%, 44%)
CMYKcmyk(59.8%, 85.7%, 0%, 56.1%)
CIE-LABlab(15.99, 38.74, -49.29)
CIE-LCHlch(15.99, 62.69, 308.17°)
OKLaboklab(29.36% 0.0429 -0.1419)
OKLCHoklch(29.36% 0.148 286.8)
XYZxyz(4.1912, 2.0981, 15.5102)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1070 #537010
analogous
#102370 #2D1070 #5D1070
triadic
#2D1070 #702D10 #10702D
tetradic
#2D1070 #701023 #537010 #10705D
square
#2D1070 #701023 #537010 #10705D
split-complementary
#2D1070 #705D10 #237010
monochromatic
#0B041B #17083A #2D1070 #4318A6 #581FDB

Accessibility & contrast

On white

14.79
#2D1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1070
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1070#FFFFFF#000000##FFFFFF
##2D10701.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#0C2D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1070;
/* rgb */ color: rgb(45, 16, 112);
/* oklch */ color: oklch(29.4% 0.148 286.8);
Tailwind
colors: {
  custom: {
    50: '#70539a',
    500: '#2d1070',
    950: '#000000',
  },
}
SCSS
$custom: #2d1070;
$custom-light: #70539a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1070",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 258.125,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29356,
    "c": 0.14828,
    "h": 286.8
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#2D1070
secondary
#85A834
accent
#F236B9
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1070

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

Preview Lab → · Contrast checker → · Palette generator →

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