#2D273E#2D273E

#2D273E is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.0% C 0.042 H 295.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2D273E
RGBrgb(45, 39, 62)
HSLhsl(256, 23%, 20%)
HSVhsv(256, 37%, 24%)
CMYKcmyk(27.4%, 37.1%, 0%, 75.7%)
CIE-LABlab(17.26, 8.77, -13.65)
CIE-LCHlch(17.26, 16.23, 302.73°)
OKLaboklab(29.01% 0.0182 -0.0378)
OKLCHoklch(29.01% 0.042 295.7)
XYZxyz(2.6770, 2.3567, 4.8703)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D273E #383E27
analogous
#272D3E #2D273E #39273E
triadic
#2D273E #3E2D27 #273E2D
tetradic
#2D273E #3E272D #383E27 #273E39
square
#2D273E #3E272D #383E27 #273E39
split-complementary
#2D273E #3E3927 #2D3E27
monochromatic
#0E0C13 #120F18 #2D273E #483F64 #645689

Accessibility & contrast

On white

14.27
#2D273E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D273E
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D273E#FFFFFF#000000##FFFFFF
##2D273E1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B3F
Deuteranopia (green-blind)
#222A3D
Tritanopia (blue-blind)
#2A2B2F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d273e;
/* rgb */ color: rgb(45, 39, 62);
/* oklch */ color: oklch(29.0% 0.042 295.7);
Tailwind
colors: {
  custom: {
    50: '#666173',
    500: '#2d273e',
    950: '#000000',
  },
}
SCSS
$custom: #2d273e;
$custom-light: #666173;
$custom-dark: #000000;
JSON
{
  "hex": "#2d273e",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 62
  },
  "hsl": {
    "h": 255.652,
    "s": 22.772,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29012,
    "c": 0.04194,
    "h": 295.7
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2D273E
secondary
#687051
accent
#BF69A9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2D273E

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

Preview Lab → · Contrast checker → · Palette generator →

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