#2D1165#2D1165

#2D1165 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.134 H 290.1°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2D1165
RGBrgb(45, 17, 101)
HSLhsl(260, 71%, 23%)
HSVhsv(260, 83%, 40%)
CMYKcmyk(55.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.94, 35.02, -43.81)
CIE-LCHlch(14.94, 56.09, 308.63°)
OKLaboklab(28.27% 0.0461 -0.1259)
OKLCHoklch(28.27% 0.134 290.1)
XYZxyz(3.6309, 1.8982, 12.4845)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1165 #496511
analogous
#111F65 #2D1165 #571165
triadic
#2D1165 #652D11 #11652D
tetradic
#2D1165 #65111F #496511 #116557
square
#2D1165 #65111F #496511 #116557
split-complementary
#2D1165 #655711 #1F6511
monochromatic
#0C041A #160831 #2D1165 #441A99 #5C23CE

Accessibility & contrast

On white

15.22
#2D1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1165
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1165#FFFFFF#000000##FFFFFF
##2D11651.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#18293B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1165;
/* rgb */ color: rgb(45, 17, 101);
/* oklch */ color: oklch(28.3% 0.134 290.1);
Tailwind
colors: {
  custom: {
    50: '#6d5392',
    500: '#2d1165',
    950: '#000000',
  },
}
SCSS
$custom: #2d1165;
$custom-light: #6d5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1165",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 260,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28266,
    "c": 0.13414,
    "h": 290.1
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#2D1165
secondary
#7A9D35
accent
#EE3AB2
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2D1165

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

Preview Lab → · Contrast checker → · Palette generator →

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