#2D0E4B#2D0E4B

#2D0E4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.106 H 302.5°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2D0E4B
RGBrgb(45, 14, 75)
HSLhsl(270, 69%, 17%)
HSVhsv(270, 81%, 29%)
CMYKcmyk(40%, 81.3%, 0%, 70.6%)
CIE-LABlab(11.82, 28.94, -31.34)
CIE-LCHlch(11.82, 42.66, 312.73°)
OKLaboklab(25.28% 0.0568 -0.0893)
OKLCHoklch(25.28% 0.106 302.5)
XYZxyz(2.5089, 1.3800, 6.7894)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0E4B #2C4B0E
analogous
#0F0E4B #2D0E4B #4B0E4A
triadic
#2D0E4B #4B2D0E #0E4B2D
tetradic
#2D0E4B #4B0F0E #2C4B0E #0E4A4B
square
#2D0E4B #4B0F0E #2C4B0E #0E4A4B
split-complementary
#2D0E4B #4A4B0E #0E4B0F
monochromatic
#0F051A #0F051A #2D0E4B #4C187F #6B21B2

Accessibility & contrast

On white

16.46
#2D0E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0E4B
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0E4B#FFFFFF#000000##FFFFFF
##2D0E4B1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#271D2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d0e4b;
/* rgb */ color: rgb(45, 14, 75);
/* oklch */ color: oklch(25.3% 0.106 302.5);
Tailwind
colors: {
  custom: {
    50: '#6a507e',
    500: '#2d0e4b',
    950: '#000000',
  },
}
SCSS
$custom: #2d0e4b;
$custom-light: #6a507e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0e4b",
  "rgb": {
    "r": 45,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 270.492,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25283,
    "c": 0.10587,
    "h": 302.5
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#2D0E4B
secondary
#5A862F
accent
#EB3C92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D0E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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