#2D1363#2D1363

#2D1363 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.130 H 290.4°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2D1363
RGBrgb(45, 19, 99)
HSLhsl(260, 68%, 23%)
HSVhsv(260, 81%, 39%)
CMYKcmyk(54.5%, 80.8%, 0%, 61.2%)
CIE-LABlab(15.08, 33.41, -42.26)
CIE-LCHlch(15.08, 53.87, 308.33°)
OKLaboklab(28.3% 0.0451 -0.1214)
OKLCHoklch(28.3% 0.13 290.4)
XYZxyz(3.5665, 1.9243, 11.9855)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1363 #496313
analogous
#132163 #2D1363 #551363
triadic
#2D1363 #632D13 #13632D
tetradic
#2D1363 #631321 #496313 #136355
square
#2D1363 #631321 #496313 #136355
split-complementary
#2D1363 #635513 #216313
monochromatic
#0C051A #160930 #2D1363 #441D96 #5C27CA

Accessibility & contrast

On white

15.16
#2D1363 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1363 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1363
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1363#FFFFFF#000000##FFFFFF
##2D13631.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1A293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1363;
/* rgb */ color: rgb(45, 19, 99);
/* oklch */ color: oklch(28.3% 0.130 290.4);
Tailwind
colors: {
  custom: {
    50: '#6d5490',
    500: '#2d1363',
    950: '#000000',
  },
}
SCSS
$custom: #2d1363;
$custom-light: #6d5490;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1363",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 99
  },
  "hsl": {
    "h": 259.5,
    "s": 67.797,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28301,
    "c": 0.12954,
    "h": 290.4
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#2D1363
secondary
#7A9B37
accent
#EB3DB2
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2D1363

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

Preview Lab → · Contrast checker → · Palette generator →

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