#2D1849#2D1849

#2D1849 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.088 H 300.2°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2D1849
RGBrgb(45, 24, 73)
HSLhsl(266, 51%, 19%)
HSVhsv(266, 67%, 29%)
CMYKcmyk(38.4%, 67.1%, 0%, 71.4%)
CIE-LABlab(13.78, 22.50, -26.78)
CIE-LCHlch(13.78, 34.98, 310.04°)
OKLaboklab(26.64% 0.0443 -0.076)
OKLCHoklch(26.64% 0.088 300.2)
XYZxyz(2.6111, 1.6922, 6.4911)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1849 #344918
analogous
#181C49 #2D1849 #461849
triadic
#2D1849 #492D18 #18492D
tetradic
#2D1849 #49181C #344918 #184946
square
#2D1849 #49181C #344918 #184946
split-complementary
#2D1849 #494618 #1C4918
monochromatic
#0E0817 #11091B #2D1849 #492777 #6636A5

Accessibility & contrast

On white

15.69
#2D1849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D1849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1849
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1849#FFFFFF#000000##FFFFFF
##2D18491.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234B
Deuteranopia (green-blind)
#082348
Tritanopia (blue-blind)
#27222D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1849;
/* rgb */ color: rgb(45, 24, 73);
/* oklch */ color: oklch(26.6% 0.088 300.2);
Tailwind
colors: {
  custom: {
    50: '#68567c',
    500: '#2d1849',
    950: '#000000',
  },
}
SCSS
$custom: #2d1849;
$custom-light: #68567c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1849",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 73
  },
  "hsl": {
    "h": 265.714,
    "s": 50.515,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.08796,
    "h": 300.2
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#2D1849
secondary
#63803D
accent
#DA4E9E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D1849

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

Preview Lab → · Contrast checker → · Palette generator →

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