#2D0D58#2D0D58

#2D0D58 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.4% C 0.123 H 296.1°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2D0D58
RGBrgb(45, 13, 88)
HSLhsl(266, 74%, 20%)
HSVhsv(266, 85%, 35%)
CMYKcmyk(48.9%, 85.2%, 0%, 65.5%)
CIE-LABlab(12.92, 33.12, -38.44)
CIE-LCHlch(12.92, 50.74, 310.75°)
OKLaboklab(26.45% 0.0539 -0.1102)
OKLCHoklch(26.45% 0.123 296.1)
XYZxyz(2.9871, 1.5502, 9.3725)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D58 #38580D
analogous
#0D1358 #2D0D58 #530D58
triadic
#2D0D58 #582D0D #0D582D
tetradic
#2D0D58 #580D13 #38580D #0D5853
square
#2D0D58 #580D13 #38580D #0D5853
split-complementary
#2D0D58 #58530D #13580D
monochromatic
#0E041B #120523 #2D0D58 #48158D #641DC3

Accessibility & contrast

On white

16.03
#2D0D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D0D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D58
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D58#FFFFFF#000000##FFFFFF
##2D0D581.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#212233
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d0d58;
/* rgb */ color: rgb(45, 13, 88);
/* oklch */ color: oklch(26.4% 0.123 296.1);
Tailwind
colors: {
  custom: {
    50: '#6b5088',
    500: '#2d0d58',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d58;
$custom-light: #6b5088;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d58",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 265.6,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26447,
    "c": 0.12265,
    "h": 296.1
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#2D0D58
secondary
#68932E
accent
#F137A2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0D58

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

Preview Lab → · Contrast checker → · Palette generator →

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