#2D0F5F#2D0F5F

#2D0F5F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.129 H 292.7°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2D0F5F
RGBrgb(45, 15, 95)
HSLhsl(263, 73%, 22%)
HSVhsv(263, 84%, 37%)
CMYKcmyk(52.6%, 84.2%, 0%, 62.7%)
CIE-LABlab(13.98, 34.21, -41.42)
CIE-LCHlch(13.98, 53.72, 309.55°)
OKLaboklab(27.4% 0.0498 -0.1189)
OKLCHoklch(27.4% 0.129 292.7)
XYZxyz(3.3180, 1.7256, 10.9825)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F5F #415F0F
analogous
#0F195F #2D0F5F #550F5F
triadic
#2D0F5F #5F2D0F #0F5F2D
tetradic
#2D0F5F #5F0F19 #415F0F #0F5F55
square
#2D0F5F #5F0F19 #415F0F #0F5F55
split-complementary
#2D0F5F #5F550F #195F0F
monochromatic
#0D041A #14072A #2D0F5F #461794 #5F20C9

Accessibility & contrast

On white

15.61
#2D0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F5F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F5F#FFFFFF#000000##FFFFFF
##2D0F5F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#1D2637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d0f5f;
/* rgb */ color: rgb(45, 15, 95);
/* oklch */ color: oklch(27.4% 0.129 292.7);
Tailwind
colors: {
  custom: {
    50: '#6c528d',
    500: '#2d0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f5f;
$custom-light: #6c528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f5f",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 262.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.274,
    "c": 0.12893,
    "h": 292.7
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#2D0F5F
secondary
#729832
accent
#EF38AB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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