#2D1143#2D1143

#2D1143 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.091 H 306.6°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2D1143
RGBrgb(45, 17, 67)
HSLhsl(274, 60%, 16%)
HSVhsv(274, 75%, 26%)
CMYKcmyk(32.8%, 74.6%, 0%, 73.7%)
CIE-LABlab(11.72, 25.06, -25.93)
CIE-LCHlch(11.72, 36.06, 314.03°)
OKLaboklab(24.99% 0.0546 -0.0734)
OKLCHoklch(24.99% 0.092 306.6)
XYZxyz(2.2955, 1.3641, 5.4515)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1143 #274311
analogous
#141143 #2D1143 #431140
triadic
#2D1143 #432D11 #11432D
tetradic
#2D1143 #431411 #274311 #114043
square
#2D1143 #431411 #274311 #114043
split-complementary
#2D1143 #404311 #114314
monochromatic
#100618 #100618 #2D1143 #4E1D74 #6F2AA5

Accessibility & contrast

On white

16.50
#2D1143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2D1143 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1143
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1143#FFFFFF#000000##FFFFFF
##2D11431.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#051F42
Tritanopia (blue-blind)
#291C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1143;
/* rgb */ color: rgb(45, 17, 67);
/* oklch */ color: oklch(25.0% 0.091 306.6);
Tailwind
colors: {
  custom: {
    50: '#685177',
    500: '#2d1143',
    950: '#000000',
  },
}
SCSS
$custom: #2d1143;
$custom-light: #685177;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1143",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 67
  },
  "hsl": {
    "h": 273.6,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24989,
    "c": 0.0915,
    "h": 306.6
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#2D1143
secondary
#547D33
accent
#E3458A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1143

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

Preview Lab → · Contrast checker → · Palette generator →

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