#2D183E#2D183E

#2D183E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.8% C 0.072 H 307.6°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2D183E
RGBrgb(45, 24, 62)
HSLhsl(273, 44%, 17%)
HSVhsv(273, 61%, 24%)
CMYKcmyk(27.4%, 61.3%, 0%, 75.7%)
CIE-LABlab(12.98, 19.25, -20.38)
CIE-LCHlch(12.98, 28.04, 313.37°)
OKLaboklab(25.79% 0.0441 -0.0572)
OKLCHoklch(25.79% 0.072 307.6)
XYZxyz(2.2781, 1.5590, 4.7374)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D183E #293E18
analogous
#1A183E #2D183E #3E183C
triadic
#2D183E #3E2D18 #183E2D
tetradic
#2D183E #3E1A18 #293E18 #183C3E
square
#2D183E #3E1A18 #293E18 #183C3E
split-complementary
#2D183E #3C3E18 #183E1A
monochromatic
#100916 #100916 #2D183E #4D296A #6D3A96

Accessibility & contrast

On white

16.01
#2D183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D183E
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D183E#FFFFFF#000000##FFFFFF
##2D183E1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C213F
Deuteranopia (green-blind)
#13223D
Tritanopia (blue-blind)
#2A1F28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d183e;
/* rgb */ color: rgb(45, 24, 62);
/* oklch */ color: oklch(25.8% 0.072 307.6);
Tailwind
colors: {
  custom: {
    50: '#675573',
    500: '#2d183e',
    950: '#000000',
  },
}
SCSS
$custom: #2d183e;
$custom-light: #675573;
$custom-dark: #000000;
JSON
{
  "hex": "#2d183e",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 273.158,
    "s": 44.186,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25789,
    "c": 0.07225,
    "h": 307.6
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#2D183E
secondary
#56743D
accent
#D4548D
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D183E

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

Preview Lab → · Contrast checker → · Palette generator →

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