#2D1963#2D1963

#2D1963 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.1% C 0.122 H 288.8°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1963
RGBrgb(45, 25, 99)
HSLhsl(256, 60%, 24%)
HSVhsv(256, 75%, 39%)
CMYKcmyk(54.5%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.27, 30.06, -40.31)
CIE-LCHlch(16.27, 50.28, 306.71°)
OKLaboklab(29.14% 0.0395 -0.1157)
OKLCHoklch(29.14% 0.122 288.8)
XYZxyz(3.6813, 2.1538, 12.0237)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1963 #4F6319
analogous
#192A63 #2D1963 #521963
triadic
#2D1963 #632D19 #19632D
tetradic
#2D1963 #63192A #4F6319 #196352
square
#2D1963 #63192A #4F6319 #196352
split-complementary
#2D1963 #635219 #2A6319
monochromatic
#0B0618 #170D32 #2D1963 #432594 #5932C5

Accessibility & contrast

On white

14.68
#2D1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1963 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1963
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1963#FFFFFF#000000##FFFFFF
##2D19631.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#192C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1963;
/* rgb */ color: rgb(45, 25, 99);
/* oklch */ color: oklch(29.1% 0.122 288.8);
Tailwind
colors: {
  custom: {
    50: '#6c5790',
    500: '#2d1963',
    950: '#000000',
  },
}
SCSS
$custom: #2d1963;
$custom-light: #6c5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1963",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 256.216,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29142,
    "c": 0.1223,
    "h": 288.8
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2D1963
secondary
#81993F
accent
#E345B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2D1963

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

Preview Lab → · Contrast checker → · Palette generator →

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