#2D1964#2D1964

#2D1964 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.124 H 288.5°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1964
RGBrgb(45, 25, 100)
HSLhsl(256, 60%, 25%)
HSVhsv(256, 75%, 39%)
CMYKcmyk(55%, 75%, 0%, 60.8%)
CIE-LABlab(16.37, 30.38, -40.81)
CIE-LCHlch(16.37, 50.87, 306.66°)
OKLaboklab(29.24% 0.0393 -0.1172)
OKLCHoklch(29.24% 0.124 288.5)
XYZxyz(3.7294, 2.1731, 12.2771)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1964 #506419
analogous
#192B64 #2D1964 #531964
triadic
#2D1964 #642D19 #19642D
tetradic
#2D1964 #64192B #506419 #196453
square
#2D1964 #64192B #506419 #196453
split-complementary
#2D1964 #645319 #2B6419
monochromatic
#0B0618 #170D33 #2D1964 #432595 #5931C6

Accessibility & contrast

On white

14.64
#2D1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1964
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1964#FFFFFF#000000##FFFFFF
##2D19641.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#182D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1964;
/* rgb */ color: rgb(45, 25, 100);
/* oklch */ color: oklch(29.2% 0.124 288.5);
Tailwind
colors: {
  custom: {
    50: '#6c5791',
    500: '#2d1964',
    950: '#000000',
  },
}
SCSS
$custom: #2d1964;
$custom-light: #6c5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1964",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 256,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2924,
    "c": 0.12363,
    "h": 288.5
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#2D1964
secondary
#829A3F
accent
#E345B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1964

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

Preview Lab → · Contrast checker → · Palette generator →

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