#2D1745#2D1745

#2D1745 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.084 H 303.1°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2D1745
RGBrgb(45, 23, 69)
HSLhsl(269, 50%, 18%)
HSVhsv(269, 67%, 27%)
CMYKcmyk(34.8%, 66.7%, 0%, 72.9%)
CIE-LABlab(13.23, 21.95, -24.89)
CIE-LCHlch(13.23, 33.18, 311.41°)
OKLaboklab(26.14% 0.0459 -0.0704)
OKLCHoklch(26.14% 0.084 303.1)
XYZxyz(2.4625, 1.6004, 5.8082)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1745 #2F4517
analogous
#171845 #2D1745 #441745
triadic
#2D1745 #452D17 #17452D
tetradic
#2D1745 #451718 #2F4517 #174544
square
#2D1745 #451718 #2F4517 #174544
split-complementary
#2D1745 #454417 #184517
monochromatic
#0F0817 #0F0817 #2D1745 #4B2673 #6936A1

Accessibility & contrast

On white

15.91
#2D1745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1745
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1745#FFFFFF#000000##FFFFFF
##2D17451.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032246
Deuteranopia (green-blind)
#0B2244
Tritanopia (blue-blind)
#28202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1745;
/* rgb */ color: rgb(45, 23, 69);
/* oklch */ color: oklch(26.1% 0.084 303.1);
Tailwind
colors: {
  custom: {
    50: '#685579',
    500: '#2d1745',
    950: '#000000',
  },
}
SCSS
$custom: #2d1745;
$custom-light: #685579;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1745",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 268.696,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26137,
    "c": 0.08405,
    "h": 303.1
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#2D1745
secondary
#5D7C3C
accent
#DA4E97
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D1745

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

Preview Lab → · Contrast checker → · Palette generator →

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