#2D1746#2D1746

#2D1746 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.085 H 302.5°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2D1746
RGBrgb(45, 23, 70)
HSLhsl(268, 51%, 18%)
HSVhsv(268, 67%, 27%)
CMYKcmyk(35.7%, 67.1%, 0%, 72.5%)
CIE-LABlab(13.31, 22.24, -25.46)
CIE-LCHlch(13.31, 33.81, 311.14°)
OKLaboklab(26.22% 0.0459 -0.0721)
OKLCHoklch(26.22% 0.085 302.5)
XYZxyz(2.4938, 1.6129, 5.9731)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1746 #304617
analogous
#171846 #2D1746 #441746
triadic
#2D1746 #462D17 #17462D
tetradic
#2D1746 #461718 #304617 #174644
square
#2D1746 #461718 #304617 #174644
split-complementary
#2D1746 #464417 #184617
monochromatic
#0F0817 #0F0818 #2D1746 #4B2674 #6835A2

Accessibility & contrast

On white

15.88
#2D1746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1746
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1746#FFFFFF#000000##FFFFFF
##2D17461.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022248
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#28212B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1746;
/* rgb */ color: rgb(45, 23, 70);
/* oklch */ color: oklch(26.2% 0.085 302.5);
Tailwind
colors: {
  custom: {
    50: '#68557a',
    500: '#2d1746',
    950: '#000000',
  },
}
SCSS
$custom: #2d1746;
$custom-light: #68557a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1746",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 70
  },
  "hsl": {
    "h": 268.085,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26217,
    "c": 0.08546,
    "h": 302.5
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#2D1746
secondary
#5E7D3C
accent
#DA4E98
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D1746

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

Preview Lab → · Contrast checker → · Palette generator →

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