#2D2139#2D2139

#2D2139 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.3% C 0.046 H 306.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2D2139
RGBrgb(45, 33, 57)
HSLhsl(270, 27%, 18%)
HSVhsv(270, 42%, 22%)
CMYKcmyk(21.1%, 42.1%, 0%, 77.6%)
CIE-LABlab(15.17, 11.59, -13.40)
CIE-LCHlch(15.17, 17.71, 310.86°)
OKLaboklab(27.34% 0.0274 -0.037)
OKLCHoklch(27.34% 0.046 306.5)
XYZxyz(2.3644, 1.9410, 4.1202)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2139 #2D3921
analogous
#212139 #2D2139 #392139
triadic
#2D2139 #392D21 #21392D
tetradic
#2D2139 #392121 #2D3921 #213939
square
#2D2139 #392121 #2D3921 #213939
split-complementary
#2D2139 #393921 #213921
monochromatic
#0F0B13 #0F0B13 #2D2139 #4C3760 #6A4E87

Accessibility & contrast

On white

15.13
#2D2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2139
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2139#FFFFFF#000000##FFFFFF
##2D21391.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C263A
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#2B252A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d2139;
/* rgb */ color: rgb(45, 33, 57);
/* oklch */ color: oklch(27.3% 0.046 306.5);
Tailwind
colors: {
  custom: {
    50: '#665c6f',
    500: '#2d2139',
    950: '#000000',
  },
}
SCSS
$custom: #2d2139;
$custom-light: #665c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2139",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 270,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27336,
    "c": 0.04608,
    "h": 306.5
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#2D2139
secondary
#5B6C4A
accent
#C36594
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2D2139

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

Preview Lab → · Contrast checker → · Palette generator →

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