#2D1343#2D1343

#2D1343 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.088 H 306.0°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2D1343
RGBrgb(45, 19, 67)
HSLhsl(273, 56%, 17%)
HSVhsv(273, 72%, 26%)
CMYKcmyk(32.8%, 71.6%, 0%, 73.7%)
CIE-LABlab(12.15, 23.88, -25.23)
CIE-LCHlch(12.15, 34.74, 313.42°)
OKLaboklab(25.3% 0.0518 -0.0714)
OKLCHoklch(25.3% 0.088 306)
XYZxyz(2.3280, 1.4289, 5.4623)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1343 #294313
analogous
#151343 #2D1343 #431341
triadic
#2D1343 #432D13 #13432D
tetradic
#2D1343 #431513 #294313 #134143
square
#2D1343 #431513 #294313 #134143
split-complementary
#2D1343 #414313 #134315
monochromatic
#100718 #100718 #2D1343 #4D2173 #6D2EA2

Accessibility & contrast

On white

16.33
#2D1343 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D1343 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1343
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1343#FFFFFF#000000##FFFFFF
##2D13431.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#082042
Tritanopia (blue-blind)
#291D28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1343;
/* rgb */ color: rgb(45, 19, 67);
/* oklch */ color: oklch(25.3% 0.088 306.0);
Tailwind
colors: {
  custom: {
    50: '#685277',
    500: '#2d1343',
    950: '#000000',
  },
}
SCSS
$custom: #2d1343;
$custom-light: #685277;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1343",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 67
  },
  "hsl": {
    "h": 272.5,
    "s": 55.814,
    "l": 16.863
  },
  "oklch": {
    "l": 0.253,
    "c": 0.08821,
    "h": 306
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#2D1343
secondary
#567C36
accent
#DF498E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1343

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

Preview Lab → · Contrast checker → · Palette generator →

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