#2D1769#2D1769

#2D1769 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.133 H 287.5°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2D1769
RGBrgb(45, 23, 105)
HSLhsl(256, 64%, 25%)
HSVhsv(256, 78%, 41%)
CMYKcmyk(57.1%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.46, 33.11, -43.96)
CIE-LCHlch(16.46, 55.03, 306.99°)
OKLaboklab(29.45% 0.0399 -0.1264)
OKLCHoklch(29.45% 0.133 287.5)
XYZxyz(3.9376, 2.1904, 13.5772)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1769 #536917
analogous
#172A69 #2D1769 #561769
triadic
#2D1769 #692D17 #17692D
tetradic
#2D1769 #69172A #536917 #176956
square
#2D1769 #69172A #536917 #176956
split-complementary
#2D1769 #695617 #2A6917
monochromatic
#0B0519 #170C37 #2D1769 #43229B #582DCD

Accessibility & contrast

On white

14.60
#2D1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1769
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1769#FFFFFF#000000##FFFFFF
##2D17691.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#142D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1769;
/* rgb */ color: rgb(45, 23, 105);
/* oklch */ color: oklch(29.5% 0.133 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2d1769',
    950: '#000000',
  },
}
SCSS
$custom: #2d1769;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1769",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 256.098,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29452,
    "c": 0.1326,
    "h": 287.5
  },
  "luminance": 0.02191
}

Semantic roles & 50–950 ramp

primary
#2D1769
secondary
#859F3D
accent
#E741BA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1769

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

Preview Lab → · Contrast checker → · Palette generator →

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