#2D1763#2D1763

#2D1763 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.125 H 289.4°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1763
RGBrgb(45, 23, 99)
HSLhsl(257, 62%, 24%)
HSVhsv(257, 77%, 39%)
CMYKcmyk(54.5%, 76.8%, 0%, 61.2%)
CIE-LABlab(15.86, 31.22, -40.99)
CIE-LCHlch(15.86, 51.52, 307.30°)
OKLaboklab(28.85% 0.0415 -0.1177)
OKLCHoklch(28.85% 0.125 289.4)
XYZxyz(3.6401, 2.0714, 12.0100)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1763 #4D6317
analogous
#172763 #2D1763 #531763
triadic
#2D1763 #632D17 #17632D
tetradic
#2D1763 #631727 #4D6317 #176353
square
#2D1763 #631727 #4D6317 #176353
split-complementary
#2D1763 #635317 #276317
monochromatic
#0B0619 #160B31 #2D1763 #442395 #5A2EC6

Accessibility & contrast

On white

14.85
#2D1763 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1763 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1763
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1763#FFFFFF#000000##FFFFFF
##2D17631.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#192B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1763;
/* rgb */ color: rgb(45, 23, 99);
/* oklch */ color: oklch(28.8% 0.125 289.4);
Tailwind
colors: {
  custom: {
    50: '#6c5690',
    500: '#2d1763',
    950: '#000000',
  },
}
SCSS
$custom: #2d1763;
$custom-light: #6c5690;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1763",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 99
  },
  "hsl": {
    "h": 257.368,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28845,
    "c": 0.12482,
    "h": 289.4
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#2D1763
secondary
#7F9A3C
accent
#E542B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2D1763

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

Preview Lab → · Contrast checker → · Palette generator →

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