#2D1683#2D1683

#2D1683 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.166 H 281.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2D1683
RGBrgb(45, 22, 131)
HSLhsl(253, 71%, 30%)
HSVhsv(253, 83%, 51%)
CMYKcmyk(65.6%, 83.2%, 0%, 48.6%)
CIE-LABlab(19.10, 41.69, -56.34)
CIE-LCHlch(19.10, 70.09, 306.50°)
OKLaboklab(32.14% 0.0326 -0.1626)
OKLCHoklch(32.14% 0.166 281.3)
XYZxyz(5.4645, 2.7700, 21.7150)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1683 #6C8316
analogous
#163583 #2D1683 #641683
triadic
#2D1683 #832D16 #16832D
tetradic
#2D1683 #831635 #6C8316 #168364
square
#2D1683 #831635 #6C8316 #168364
split-complementary
#2D1683 #836416 #358316
monochromatic
#09041A #1B0D4F #2D1683 #3F1FB7 #5936DD

Accessibility & contrast

On white

13.51
#2D1683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1683
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1683#FFFFFF#000000##FFFFFF
##2D16831.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1683;
/* rgb */ color: rgb(45, 22, 131);
/* oklch */ color: oklch(32.1% 0.166 281.3);
Tailwind
colors: {
  custom: {
    50: '#7358a8',
    500: '#2d1683',
    950: '#000000',
  },
}
SCSS
$custom: #2d1683;
$custom-light: #7358a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1683",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 252.661,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.3214,
    "c": 0.1658,
    "h": 281.3
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#2D1683
secondary
#9EB73D
accent
#EE3AC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2D1683

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

Preview Lab → · Contrast checker → · Palette generator →

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