#2D1863#2D1863

#2D1863 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.124 H 289.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2D1863
RGBrgb(45, 24, 99)
HSLhsl(257, 61%, 24%)
HSVhsv(257, 76%, 39%)
CMYKcmyk(54.5%, 75.8%, 0%, 61.2%)
CIE-LABlab(16.06, 30.64, -40.65)
CIE-LCHlch(16.06, 50.91, 307.01°)
OKLaboklab(28.99% 0.0405 -0.1167)
OKLCHoklch(28.99% 0.124 289.1)
XYZxyz(3.6603, 2.1118, 12.0167)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1863 #4E6318
analogous
#182963 #2D1863 #531863
triadic
#2D1863 #632D18 #18632D
tetradic
#2D1863 #631829 #4E6318 #186353
square
#2D1863 #631829 #4E6318 #186353
split-complementary
#2D1863 #635318 #296318
monochromatic
#0B0619 #170C32 #2D1863 #432494 #5A30C6

Accessibility & contrast

On white

14.76
#2D1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1863
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1863#FFFFFF#000000##FFFFFF
##2D18631.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1863;
/* rgb */ color: rgb(45, 24, 99);
/* oklch */ color: oklch(29.0% 0.124 289.1);
Tailwind
colors: {
  custom: {
    50: '#6c5790',
    500: '#2d1863',
    950: '#000000',
  },
}
SCSS
$custom: #2d1863;
$custom-light: #6c5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1863",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 256.8,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.12358,
    "h": 289.1
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#2D1863
secondary
#80993E
accent
#E444B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2D1863

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

Preview Lab → · Contrast checker → · Palette generator →

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