#2D1242#2D1242

#2D1242 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.089 H 307.0°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#2D1242
RGBrgb(45, 18, 66)
HSLhsl(274, 57%, 16%)
HSVhsv(274, 73%, 26%)
CMYKcmyk(31.8%, 72.7%, 0%, 74.1%)
CIE-LABlab(11.85, 24.19, -25.01)
CIE-LCHlch(11.85, 34.80, 314.05°)
OKLaboklab(25.06% 0.0533 -0.0708)
OKLCHoklch(25.06% 0.089 307)
XYZxyz(2.2817, 1.3839, 5.3001)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1242 #274212
analogous
#151242 #2D1242 #42123F
triadic
#2D1242 #422D12 #12422D
tetradic
#2D1242 #421512 #274212 #123F42
square
#2D1242 #421512 #274212 #123F42
split-complementary
#2D1242 #3F4212 #124215
monochromatic
#100718 #100718 #2D1242 #4E1F72 #6F2CA2

Accessibility & contrast

On white

16.45
#2D1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1242
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1242#FFFFFF#000000##FFFFFF
##2D12421.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#081F41
Tritanopia (blue-blind)
#2A1C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2d1242;
/* rgb */ color: rgb(45, 18, 66);
/* oklch */ color: oklch(25.1% 0.089 307.0);
Tailwind
colors: {
  custom: {
    50: '#685277',
    500: '#2d1242',
    950: '#000000',
  },
}
SCSS
$custom: #2d1242;
$custom-light: #685277;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1242",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 273.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25059,
    "c": 0.08858,
    "h": 307
  },
  "luminance": 0.01384
}

Semantic roles & 50–950 ramp

primary
#2D1242
secondary
#547B35
accent
#E0478A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D1242

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

Preview Lab → · Contrast checker → · Palette generator →

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