#2D0E4D#2D0E4D

#2D0E4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.108 H 301.3°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#2D0E4D
RGBrgb(45, 14, 77)
HSLhsl(270, 69%, 18%)
HSVhsv(270, 82%, 30%)
CMYKcmyk(41.6%, 81.8%, 0%, 69.8%)
CIE-LABlab(12.01, 29.51, -32.42)
CIE-LCHlch(12.01, 43.84, 312.31°)
OKLaboklab(25.47% 0.0563 -0.0925)
OKLCHoklch(25.47% 0.108 301.3)
XYZxyz(2.5785, 1.4078, 7.1556)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E4D #2E4D0E
analogous
#0E0E4D #2D0E4D #4C0E4D
triadic
#2D0E4D #4D2D0E #0E4D2D
tetradic
#2D0E4D #4D0E0E #2E4D0E #0E4D4C
square
#2D0E4D #4D0E0E #2E4D0E #0E4D4C
split-complementary
#2D0E4D #4D4C0E #0E4D0E
monochromatic
#0F051A #0F051A #2D0E4D #4B1781 #6A21B5

Accessibility & contrast

On white

16.39
#2D0E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D0E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0E4D
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E4D#FFFFFF#000000##FFFFFF
##2D0E4D1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#261E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0e4d;
/* rgb */ color: rgb(45, 14, 77);
/* oklch */ color: oklch(25.5% 0.108 301.3);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2d0e4d',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e4d;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e4d",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 269.524,
    "s": 69.231,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25472,
    "c": 0.10831,
    "h": 301.3
  },
  "luminance": 0.01408
}

Semantic roles & 50–950 ramp

primary
#2D0E4D
secondary
#5C882F
accent
#EC3C95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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