#2D1160#2D1160

#2D1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.128 H 291.9°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2D1160
RGBrgb(45, 17, 96)
HSLhsl(261, 70%, 22%)
HSVhsv(261, 82%, 38%)
CMYKcmyk(53.1%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.42, 33.53, -41.36)
CIE-LCHlch(14.42, 53.24, 309.03°)
OKLaboklab(27.74% 0.0478 -0.1188)
OKLCHoklch(27.74% 0.128 291.9)
XYZxyz(3.3934, 1.8032, 11.2333)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1160 #446011
analogous
#111C60 #2D1160 #551160
triadic
#2D1160 #602D11 #11602D
tetradic
#2D1160 #60111C #446011 #116055
square
#2D1160 #60111C #446011 #116055
split-complementary
#2D1160 #605511 #1C6011
monochromatic
#0C051A #15082C #2D1160 #451A94 #5E23C8

Accessibility & contrast

On white

15.43
#2D1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1160
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1160#FFFFFF#000000##FFFFFF
##2D11601.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#1C2738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1160;
/* rgb */ color: rgb(45, 17, 96);
/* oklch */ color: oklch(27.7% 0.128 291.9);
Tailwind
colors: {
  custom: {
    50: '#6c538e',
    500: '#2d1160',
    950: '#000000',
  },
}
SCSS
$custom: #2d1160;
$custom-light: #6c538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1160",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 261.266,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27741,
    "c": 0.12802,
    "h": 291.9
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#2D1160
secondary
#759934
accent
#ED3BAE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D1160

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

Preview Lab → · Contrast checker → · Palette generator →

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