#2D1F69#2D1F69

#2D1F69 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.7% C 0.123 H 285.3°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2D1F69
RGBrgb(45, 31, 105)
HSLhsl(251, 54%, 27%)
HSVhsv(251, 70%, 41%)
CMYKcmyk(57.1%, 70.5%, 0%, 58.8%)
CIE-LABlab(18.18, 28.34, -41.14)
CIE-LCHlch(18.18, 49.96, 304.56°)
OKLaboklab(30.68% 0.0323 -0.1182)
OKLCHoklch(30.68% 0.123 285.3)
XYZxyz(4.1212, 2.5576, 13.6384)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F69 #5B691F
analogous
#1F3669 #2D1F69 #521F69
triadic
#2D1F69 #692D1F #1F692D
tetradic
#2D1F69 #691F36 #5B691F #1F6952
square
#2D1F69 #691F36 #5B691F #1F6952
split-complementary
#2D1F69 #69521F #36691F
monochromatic
#0A0718 #19113A #2D1F69 #412D98 #573DC6

Accessibility & contrast

On white

13.89
#2D1F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F69
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F69#FFFFFF#000000##FFFFFF
##2D1F691.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6B
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#133241
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1f69;
/* rgb */ color: rgb(45, 31, 105);
/* oklch */ color: oklch(30.7% 0.123 285.3);
Tailwind
colors: {
  custom: {
    50: '#6d5c95',
    500: '#2d1f69',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f69;
$custom-light: #6d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f69",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 251.351,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.12255,
    "h": 285.3
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2D1F69
secondary
#8D9D47
accent
#DE4AC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D1F69

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

Preview Lab → · Contrast checker → · Palette generator →

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