#2D0F52#2D0F52

#2D0F52 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.113 H 298.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2D0F52
RGBrgb(45, 15, 82)
HSLhsl(267, 69%, 19%)
HSVhsv(267, 82%, 32%)
CMYKcmyk(45.1%, 81.7%, 0%, 67.8%)
CIE-LABlab(12.66, 30.42, -34.79)
CIE-LCHlch(12.66, 46.21, 311.17°)
OKLaboklab(26.08% 0.0539 -0.0995)
OKLCHoklch(26.08% 0.113 298.5)
XYZxyz(2.7756, 1.5087, 8.1260)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0F52 #34520F
analogous
#0F1352 #2D0F52 #4F0F52
triadic
#2D0F52 #522D0F #0F522D
tetradic
#2D0F52 #520F13 #34520F #0F524F
square
#2D0F52 #520F13 #34520F #0F524F
split-complementary
#2D0F52 #524F0F #13520F
monochromatic
#0E051A #11061E #2D0F52 #491886 #6622B9

Accessibility & contrast

On white

16.13
#2D0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0F52
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0F52#FFFFFF#000000##FFFFFF
##2D0F521.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#242130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d0f52;
/* rgb */ color: rgb(45, 15, 82);
/* oklch */ color: oklch(26.1% 0.113 298.5);
Tailwind
colors: {
  custom: {
    50: '#6a5183',
    500: '#2d0f52',
    950: '#000000',
  },
}
SCSS
$custom: #2d0f52;
$custom-light: #6a5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0f52",
  "rgb": {
    "r": 45,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 266.866,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2608,
    "c": 0.11314,
    "h": 298.5
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#2D0F52
secondary
#638C31
accent
#EC3C9D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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