#2D1155#2D1155

#2D1155 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.114 H 296.5°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2D1155
RGBrgb(45, 17, 85)
HSLhsl(265, 67%, 20%)
HSVhsv(265, 80%, 33%)
CMYKcmyk(47.1%, 80%, 0%, 66.7%)
CIE-LABlab(13.32, 30.26, -35.76)
CIE-LCHlch(13.32, 46.84, 310.24°)
OKLaboklab(26.63% 0.0511 -0.1023)
OKLCHoklch(26.63% 0.114 296.5)
XYZxyz(2.9219, 1.6146, 8.7503)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1155 #395511
analogous
#111755 #2D1155 #4F1155
triadic
#2D1155 #552D11 #11552D
tetradic
#2D1155 #551117 #395511 #11554F
square
#2D1155 #551117 #395511 #11554F
split-complementary
#2D1155 #554F11 #175511
monochromatic
#0E051A #120722 #2D1155 #481B88 #6325BB

Accessibility & contrast

On white

15.87
#2D1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1155
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1155#FFFFFF#000000##FFFFFF
##2D11551.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#222332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1155;
/* rgb */ color: rgb(45, 17, 85);
/* oklch */ color: oklch(26.6% 0.114 296.5);
Tailwind
colors: {
  custom: {
    50: '#6b5286',
    500: '#2d1155',
    950: '#000000',
  },
}
SCSS
$custom: #2d1155;
$custom-light: #6b5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1155",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 264.706,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.26631,
    "c": 0.11437,
    "h": 296.5
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#2D1155
secondary
#698E34
accent
#EA3EA3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1155

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

Preview Lab → · Contrast checker → · Palette generator →

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