#2D1246#2D1246

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

Color values

HEX#2D1246
RGBrgb(45, 18, 70)
HSLhsl(271, 59%, 17%)
HSVhsv(271, 74%, 27%)
CMYKcmyk(35.7%, 74.3%, 0%, 72.5%)
CIE-LABlab(12.17, 25.33, -27.29)
CIE-LCHlch(12.17, 37.23, 312.86°)
OKLaboklab(25.4% 0.0529 -0.0775)
OKLCHoklch(25.4% 0.094 304.3)
XYZxyz(2.4037, 1.4327, 5.9431)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1246 #2B4612
analogous
#131246 #2D1246 #461245
triadic
#2D1246 #462D12 #12462D
tetradic
#2D1246 #461312 #2B4612 #124546
square
#2D1246 #461312 #2B4612 #124546
split-complementary
#2D1246 #454612 #124613
monochromatic
#100618 #100618 #2D1246 #4C1F77 #6C2BA7

Accessibility & contrast

On white

16.32
#2D1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1246
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1246#FFFFFF#000000##FFFFFF
##2D12461.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#032045
Tritanopia (blue-blind)
#281D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1246;
/* rgb */ color: rgb(45, 18, 70);
/* oklch */ color: oklch(25.4% 0.094 304.3);
Tailwind
colors: {
  custom: {
    50: '#69527a',
    500: '#2d1246',
    950: '#000000',
  },
}
SCSS
$custom: #2d1246;
$custom-light: #69527a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1246",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 271.154,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25395,
    "c": 0.09378,
    "h": 304.3
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#2D1246
secondary
#587F35
accent
#E24691
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1246

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

Preview Lab → · Contrast checker → · Palette generator →

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