#2D1346#2D1346

#2D1346 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.092 H 304.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2D1346
RGBrgb(45, 19, 70)
HSLhsl(271, 57%, 17%)
HSVhsv(271, 73%, 27%)
CMYKcmyk(35.7%, 72.9%, 0%, 72.5%)
CIE-LABlab(12.39, 24.73, -26.94)
CIE-LCHlch(12.39, 36.57, 312.55°)
OKLaboklab(25.55% 0.0515 -0.0764)
OKLCHoklch(25.55% 0.092 304)
XYZxyz(2.4203, 1.4658, 5.9486)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1346 #2C4613
analogous
#131346 #2D1346 #461346
triadic
#2D1346 #462D13 #13462D
tetradic
#2D1346 #461313 #2C4613 #134646
square
#2D1346 #461313 #2C4613 #134646
split-complementary
#2D1346 #464613 #134613
monochromatic
#0F0718 #0F0718 #2D1346 #4C2076 #6B2DA6

Accessibility & contrast

On white

16.24
#2D1346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1346
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1346#FFFFFF#000000##FFFFFF
##2D13461.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#042045
Tritanopia (blue-blind)
#281E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d1346;
/* rgb */ color: rgb(45, 19, 70);
/* oklch */ color: oklch(25.6% 0.092 304.0);
Tailwind
colors: {
  custom: {
    50: '#68527a',
    500: '#2d1346',
    950: '#000000',
  },
}
SCSS
$custom: #2d1346;
$custom-light: #68527a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1346",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 270.588,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2555,
    "c": 0.09219,
    "h": 304
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#2D1346
secondary
#5A7F36
accent
#E14792
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2D1346

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

Preview Lab → · Contrast checker → · Palette generator →

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