#2D1049#2D1049

#2D1049 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.101 H 303.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1049
RGBrgb(45, 16, 73)
HSLhsl(271, 64%, 17%)
HSVhsv(271, 78%, 29%)
CMYKcmyk(38.4%, 78.1%, 0%, 71.4%)
CIE-LABlab(12.02, 27.32, -29.63)
CIE-LCHlch(12.02, 40.30, 312.68°)
OKLaboklab(25.37% 0.0549 -0.0843)
OKLCHoklch(25.37% 0.101 303.1)
XYZxyz(2.4698, 1.4095, 6.4440)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1049 #2C4910
analogous
#101049 #2D1049 #491049
triadic
#2D1049 #492D10 #10492D
tetradic
#2D1049 #491010 #2C4910 #104949
square
#2D1049 #491010 #2C4910 #104949
split-complementary
#2D1049 #494910 #104910
monochromatic
#0F0619 #0F0619 #2D1049 #4C1B7B #6B26AD

Accessibility & contrast

On white

16.38
#2D1049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2D1049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1049
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1049#FFFFFF#000000##FFFFFF
##2D10491.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#271D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1049;
/* rgb */ color: rgb(45, 16, 73);
/* oklch */ color: oklch(25.4% 0.101 303.1);
Tailwind
colors: {
  custom: {
    50: '#69517c',
    500: '#2d1049',
    950: '#000000',
  },
}
SCSS
$custom: #2d1049;
$custom-light: #69517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1049",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 270.526,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25367,
    "c": 0.10064,
    "h": 303.1
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#2D1049
secondary
#5A8332
accent
#E74192
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1049

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

Preview Lab → · Contrast checker → · Palette generator →

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