#2D1370#2D1370

#2D1370 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.146 H 286.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2D1370
RGBrgb(45, 19, 112)
HSLhsl(257, 71%, 26%)
HSVhsv(257, 83%, 44%)
CMYKcmyk(59.8%, 83%, 0%, 56.1%)
CIE-LABlab(16.47, 37.35, -48.50)
CIE-LCHlch(16.47, 61.22, 307.60°)
OKLaboklab(29.69% 0.0409 -0.1397)
OKLCHoklch(29.69% 0.146 286.3)
XYZxyz(4.2388, 2.1932, 15.5261)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1370 #567013
analogous
#132870 #2D1370 #5B1370
triadic
#2D1370 #702D13 #13702D
tetradic
#2D1370 #701328 #567013 #13705B
square
#2D1370 #701328 #567013 #13705B
split-complementary
#2D1370 #705B13 #287013
monochromatic
#0B041A #180A3C #2D1370 #421CA4 #5725D9

Accessibility & contrast

On white

14.60
#2D1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1370
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1370#FFFFFF#000000##FFFFFF
##2D13701.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#0B2F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1370;
/* rgb */ color: rgb(45, 19, 112);
/* oklch */ color: oklch(29.7% 0.146 286.3);
Tailwind
colors: {
  custom: {
    50: '#6f559a',
    500: '#2d1370',
    950: '#000000',
  },
}
SCSS
$custom: #2d1370;
$custom-light: #6f559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1370",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 256.774,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29685,
    "c": 0.14555,
    "h": 286.3
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#2D1370
secondary
#88A738
accent
#EE3ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1370

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

Preview Lab → · Contrast checker → · Palette generator →

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