#2D1966#2D1966

#2D1966 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.126 H 287.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2D1966
RGBrgb(45, 25, 102)
HSLhsl(256, 61%, 25%)
HSVhsv(256, 75%, 40%)
CMYKcmyk(55.9%, 75.5%, 0%, 60%)
CIE-LABlab(16.56, 31.02, -41.81)
CIE-LCHlch(16.56, 52.06, 306.57°)
OKLaboklab(29.44% 0.0389 -0.1202)
OKLCHoklch(29.44% 0.126 287.9)
XYZxyz(3.8274, 2.2123, 12.7931)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1966 #526619
analogous
#192C66 #2D1966 #531966
triadic
#2D1966 #662D19 #19662D
tetradic
#2D1966 #66192C #526619 #196653
square
#2D1966 #66192C #526619 #196653
split-complementary
#2D1966 #665319 #2C6619
monochromatic
#0B0619 #170D35 #2D1966 #432597 #5831C8

Accessibility & contrast

On white

14.56
#2D1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1966
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1966#FFFFFF#000000##FFFFFF
##2D19661.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#172D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1966;
/* rgb */ color: rgb(45, 25, 102);
/* oklch */ color: oklch(29.4% 0.126 287.9);
Tailwind
colors: {
  custom: {
    50: '#6d5892',
    500: '#2d1966',
    950: '#000000',
  },
}
SCSS
$custom: #2d1966;
$custom-light: #6d5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1966",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 255.584,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29437,
    "c": 0.12628,
    "h": 287.9
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#2D1966
secondary
#849C3F
accent
#E444BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1966

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

Preview Lab → · Contrast checker → · Palette generator →

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