#2D273D#2D273D

#2D273D is a dark, muted violet. Relative luminance 0.023; OKLCH L 29.0% C 0.040 H 296.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2D273D
RGBrgb(45, 39, 61)
HSLhsl(256, 22%, 20%)
HSVhsv(256, 36%, 24%)
CMYKcmyk(26.2%, 36.1%, 0%, 76.1%)
CIE-LABlab(17.21, 8.48, -13.04)
CIE-LCHlch(17.21, 15.55, 303.03°)
OKLaboklab(28.96% 0.0178 -0.036)
OKLCHoklch(28.96% 0.04 296.3)
XYZxyz(2.6498, 2.3458, 4.7272)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D273D #373D27
analogous
#272C3D #2D273D #38273D
triadic
#2D273D #3D2D27 #273D2D
tetradic
#2D273D #3D272C #373D27 #273D38
square
#2D273D #3D272C #373D27 #273D38
split-complementary
#2D273D #3D3827 #2C3D27
monochromatic
#0E0C13 #110F18 #2D273D #493F62 #645788

Accessibility & contrast

On white

14.29
#2D273D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D273D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D273D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D273D#FFFFFF#000000##FFFFFF
##2D273D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222A3E
Deuteranopia (green-blind)
#232A3C
Tritanopia (blue-blind)
#2A2B2F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d273d;
/* rgb */ color: rgb(45, 39, 61);
/* oklch */ color: oklch(29.0% 0.040 296.3);
Tailwind
colors: {
  custom: {
    50: '#666172',
    500: '#2d273d',
    950: '#000000',
  },
}
SCSS
$custom: #2d273d;
$custom-light: #666172;
$custom-dark: #000000;
JSON
{
  "hex": "#2d273d",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 61
  },
  "hsl": {
    "h": 256.364,
    "s": 22,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28956,
    "c": 0.04021,
    "h": 296.3
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#2D273D
secondary
#676F51
accent
#BF69A7
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060508
muted
#7A797B

Preview Lab

Preview with #2D273D

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

Preview Lab → · Contrast checker → · Palette generator →

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