#2D1F6E#2D1F6E

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

Color values

HEX#2D1F6E
RGBrgb(45, 31, 110)
HSLhsl(251, 56%, 28%)
HSVhsv(251, 72%, 43%)
CMYKcmyk(59.1%, 71.8%, 0%, 56.9%)
CIE-LABlab(18.64, 30.02, -43.64)
CIE-LCHlch(18.64, 52.97, 304.52°)
OKLaboklab(31.16% 0.0315 -0.1255)
OKLCHoklch(31.16% 0.129 284.1)
XYZxyz(4.3858, 2.6634, 15.0318)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F6E #606E1F
analogous
#1F386E #2D1F6E #541F6E
triadic
#2D1F6E #6E2D1F #1F6E2D
tetradic
#2D1F6E #6E1F38 #606E1F #1F6E54
square
#2D1F6E #6E1F38 #606E1F #1F6E54
split-complementary
#2D1F6E #6E541F #386E1F
monochromatic
#0A0718 #19123E #2D1F6E #412C9E #573FC9

Accessibility & contrast

On white

13.70
#2D1F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F6E
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F6E#FFFFFF#000000##FFFFFF
##2D1F6E1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#0D3344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1f6e;
/* rgb */ color: rgb(45, 31, 110);
/* oklch */ color: oklch(31.2% 0.129 284.1);
Tailwind
colors: {
  custom: {
    50: '#6e5c98',
    500: '#2d1f6e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f6e;
$custom-light: #6e5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f6e",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 250.633,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31157,
    "c": 0.12942,
    "h": 284.1
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2D1F6E
secondary
#92A247
accent
#DF48C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D1F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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