#2D1F6F#2D1F6F

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

Color values

HEX#2D1F6F
RGBrgb(45, 31, 111)
HSLhsl(251, 56%, 28%)
HSVhsv(251, 72%, 44%)
CMYKcmyk(59.5%, 72.1%, 0%, 56.5%)
CIE-LABlab(18.74, 30.35, -44.13)
CIE-LCHlch(18.74, 53.56, 304.52°)
OKLaboklab(31.25% 0.0313 -0.127)
OKLCHoklch(31.25% 0.131 283.9)
XYZxyz(4.4405, 2.6853, 15.3202)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F6F #616F1F
analogous
#1F396F #2D1F6F #551F6F
triadic
#2D1F6F #6F2D1F #1F6F2D
tetradic
#2D1F6F #6F1F39 #616F1F #1F6F55
square
#2D1F6F #6F1F39 #616F1F #1F6F55
split-complementary
#2D1F6F #6F551F #396F1F
monochromatic
#0A0718 #1A123F #2D1F6F #402C9F #573FC9

Accessibility & contrast

On white

13.66
#2D1F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F6F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F6F#FFFFFF#000000##FFFFFF
##2D1F6F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#0B3444
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1f6f;
/* rgb */ color: rgb(45, 31, 111);
/* oklch */ color: oklch(31.3% 0.131 283.9);
Tailwind
colors: {
  custom: {
    50: '#6e5c99',
    500: '#2d1f6f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f6f;
$custom-light: #6e5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f6f",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 250.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31254,
    "c": 0.13078,
    "h": 283.9
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#2D1F6F
secondary
#93A347
accent
#E048C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D1F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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