#2D1D6E#2D1D6E

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

Color values

HEX#2D1D6E
RGBrgb(45, 29, 110)
HSLhsl(252, 58%, 27%)
HSVhsv(252, 74%, 43%)
CMYKcmyk(59.1%, 73.6%, 0%, 56.9%)
CIE-LABlab(18.20, 31.24, -44.37)
CIE-LCHlch(18.20, 54.26, 305.15°)
OKLaboklab(30.84% 0.0334 -0.1277)
OKLCHoklch(30.84% 0.132 284.6)
XYZxyz(4.3352, 2.5621, 15.0149)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D6E #5E6E1D
analogous
#1D366E #2D1D6E #561D6E
triadic
#2D1D6E #6E2D1D #1D6E2D
tetradic
#2D1D6E #6E1D36 #5E6E1D #1D6E56
square
#2D1D6E #6E1D36 #5E6E1D #1D6E56
split-complementary
#2D1D6E #6E561D #366E1D
monochromatic
#0A0618 #19103E #2D1D6E #412A9E #573ACB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1D6E#FFFFFF#000000##FFFFFF
##2D1D6E1.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)
#002F70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#0D3243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1d6e;
/* rgb */ color: rgb(45, 29, 110);
/* oklch */ color: oklch(30.8% 0.132 284.6);
Tailwind
colors: {
  custom: {
    50: '#6e5a98',
    500: '#2d1d6e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d6e;
$custom-light: #6e5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d6e",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 251.852,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30839,
    "c": 0.13195,
    "h": 284.6
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#2D1D6E
secondary
#90A244
accent
#E146C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D1D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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