#2D0D56#2D0D56

#2D0D56 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.120 H 297.0°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2D0D56
RGBrgb(45, 13, 86)
HSLhsl(266, 74%, 19%)
HSVhsv(266, 85%, 34%)
CMYKcmyk(47.7%, 84.9%, 0%, 66.3%)
CIE-LABlab(12.72, 32.55, -37.42)
CIE-LCHlch(12.72, 49.59, 311.02°)
OKLaboklab(26.24% 0.0546 -0.1072)
OKLCHoklch(26.24% 0.12 297)
XYZxyz(2.9054, 1.5176, 8.9421)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D56 #36560D
analogous
#0D1256 #2D0D56 #520D56
triadic
#2D0D56 #562D0D #0D562D
tetradic
#2D0D56 #560D12 #36560D #0D5652
square
#2D0D56 #560D12 #36560D #0D5652
split-complementary
#2D0D56 #56520D #12560D
monochromatic
#0E041B #110521 #2D0D56 #49158B #651DC0

Accessibility & contrast

On white

16.11
#2D0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0D56
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D56#FFFFFF#000000##FFFFFF
##2D0D561.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#222131
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d0d56;
/* rgb */ color: rgb(45, 13, 86);
/* oklch */ color: oklch(26.2% 0.120 297.0);
Tailwind
colors: {
  custom: {
    50: '#6b5086',
    500: '#2d0d56',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d56;
$custom-light: #6b5086;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d56",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 266.301,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26241,
    "c": 0.12028,
    "h": 297
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2D0D56
secondary
#65912E
accent
#F0379F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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