#2D2138#2D2138

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

Color values

HEX#2D2138
RGBrgb(45, 33, 56)
HSLhsl(271, 26%, 17%)
HSVhsv(271, 41%, 22%)
CMYKcmyk(19.6%, 41.1%, 0%, 78%)
CIE-LABlab(15.12, 11.30, -12.77)
CIE-LCHlch(15.12, 17.06, 311.51°)
OKLaboklab(27.28% 0.0271 -0.0352)
OKLCHoklch(27.28% 0.044 307.6)
XYZxyz(2.3397, 1.9311, 3.9901)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2138 #2C3821
analogous
#212138 #2D2138 #382138
triadic
#2D2138 #382D21 #21382D
tetradic
#2D2138 #382121 #2C3821 #213838
square
#2D2138 #382121 #2C3821 #213838
split-complementary
#2D2138 #383821 #213821
monochromatic
#0F0B13 #0F0B13 #2D2138 #4C385F #6B4E85

Accessibility & contrast

On white

15.15
#2D2138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2138
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2138#FFFFFF#000000##FFFFFF
##2D21381.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2539
Deuteranopia (green-blind)
#1F2637
Tritanopia (blue-blind)
#2C2429
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d2138;
/* rgb */ color: rgb(45, 33, 56);
/* oklch */ color: oklch(27.3% 0.044 307.6);
Tailwind
colors: {
  custom: {
    50: '#665c6e',
    500: '#2d2138',
    950: '#000000',
  },
}
SCSS
$custom: #2d2138;
$custom-light: #665c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2138",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 271.304,
    "s": 25.843,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27278,
    "c": 0.04448,
    "h": 307.6
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#2D2138
secondary
#5A6B4A
accent
#C26692
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2D2138

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

Preview Lab → · Contrast checker → · Palette generator →

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