#2D1693#2D1693

#2D1693 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 34.0% C 0.185 H 278.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2D1693
RGBrgb(45, 22, 147)
HSLhsl(251, 74%, 33%)
HSVhsv(251, 85%, 58%)
CMYKcmyk(69.4%, 85%, 0%, 42.4%)
CIE-LABlab(20.97, 46.50, -63.25)
CIE-LCHlch(20.97, 78.50, 306.33°)
OKLaboklab(33.98% 0.0272 -0.1827)
OKLCHoklch(33.98% 0.185 278.5)
XYZxyz(6.6339, 3.2377, 27.8734)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1693 #7C9316
analogous
#163D93 #2D1693 #6B1693
triadic
#2D1693 #932D16 #16932D
tetradic
#2D1693 #93163D #7C9316 #16936B
square
#2D1693 #93163D #7C9316 #16936B
split-complementary
#2D1693 #936B16 #3D9316
monochromatic
#0C0629 #1D0E5E #2D1693 #3D1EC8 #5F41E3

Accessibility & contrast

On white

12.75
#2D1693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D1693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1693
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1693#FFFFFF#000000##FFFFFF
##2D16931.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002D91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1693;
/* rgb */ color: rgb(45, 22, 147);
/* oklch */ color: oklch(34.0% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#7759b4',
    500: '#2d1693',
    950: '#000000',
  },
}
SCSS
$custom: #2d1693;
$custom-light: #7759b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1693",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 251.04,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.18468,
    "h": 278.5
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#2D1693
secondary
#ABC342
accent
#F137CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1693

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

Preview Lab → · Contrast checker → · Palette generator →

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