#2D1960#2D1960

#2D1960 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.118 H 289.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2D1960
RGBrgb(45, 25, 96)
HSLhsl(257, 59%, 24%)
HSVhsv(257, 74%, 38%)
CMYKcmyk(53.1%, 74%, 0%, 62.4%)
CIE-LABlab(15.99, 29.09, -38.78)
CIE-LCHlch(15.99, 48.48, 306.88°)
OKLaboklab(28.85% 0.0401 -0.1113)
OKLCHoklch(28.85% 0.118 289.8)
XYZxyz(3.5405, 2.0975, 11.2824)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1960 #4C6019
analogous
#192860 #2D1960 #501960
triadic
#2D1960 #602D19 #19602D
tetradic
#2D1960 #601928 #4C6019 #196050
square
#2D1960 #601928 #4C6019 #196050
split-complementary
#2D1960 #605019 #286019
monochromatic
#0B0618 #160C2F #2D1960 #442691 #5B32C1

Accessibility & contrast

On white

14.79
#2D1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1960
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1960#FFFFFF#000000##FFFFFF
##2D19601.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#1C2B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1960;
/* rgb */ color: rgb(45, 25, 96);
/* oklch */ color: oklch(28.9% 0.118 289.8);
Tailwind
colors: {
  custom: {
    50: '#6c578e',
    500: '#2d1960',
    950: '#000000',
  },
}
SCSS
$custom: #2d1960;
$custom-light: #6c578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1960",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 256.901,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28852,
    "c": 0.11828,
    "h": 289.8
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#2D1960
secondary
#7D963F
accent
#E246B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1960

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

Preview Lab → · Contrast checker → · Palette generator →

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