#2D1549#2D1549

#2D1549 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.093 H 301.4°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1549
RGBrgb(45, 21, 73)
HSLhsl(268, 55%, 18%)
HSVhsv(268, 71%, 29%)
CMYKcmyk(38.4%, 71.2%, 0%, 71.4%)
CIE-LABlab(13.08, 24.40, -27.92)
CIE-LCHlch(13.08, 37.08, 311.15°)
OKLaboklab(26.13% 0.0485 -0.0793)
OKLCHoklch(26.13% 0.093 301.4)
XYZxyz(2.5527, 1.5752, 6.4716)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1549 #314915
analogous
#151749 #2D1549 #471549
triadic
#2D1549 #492D15 #15492D
tetradic
#2D1549 #491517 #314915 #154947
square
#2D1549 #491517 #314915 #154947
split-complementary
#2D1549 #494715 #174915
monochromatic
#0F0718 #100719 #2D1549 #4A2379 #6830A8

Accessibility & contrast

On white

15.97
#2D1549 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1549 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1549
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1549#FFFFFF#000000##FFFFFF
##2D15491.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#032148
Tritanopia (blue-blind)
#27202C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1549;
/* rgb */ color: rgb(45, 21, 73);
/* oklch */ color: oklch(26.1% 0.093 301.4);
Tailwind
colors: {
  custom: {
    50: '#69547c',
    500: '#2d1549',
    950: '#000000',
  },
}
SCSS
$custom: #2d1549;
$custom-light: #69547c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1549",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 73
  },
  "hsl": {
    "h": 267.692,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26126,
    "c": 0.09296,
    "h": 301.4
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#2D1549
secondary
#608139
accent
#DF499A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D1549

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

Preview Lab → · Contrast checker → · Palette generator →

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