#2D1967#2D1967

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

Color values

HEX#2D1967
RGBrgb(45, 25, 103)
HSLhsl(255, 61%, 25%)
HSVhsv(255, 76%, 40%)
CMYKcmyk(56.3%, 75.7%, 0%, 59.6%)
CIE-LABlab(16.66, 31.34, -42.31)
CIE-LCHlch(16.66, 52.65, 306.53°)
OKLaboklab(29.54% 0.0386 -0.1216)
OKLCHoklch(29.54% 0.128 287.6)
XYZxyz(3.8773, 2.2322, 13.0559)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1967 #536719
analogous
#192C67 #2D1967 #541967
triadic
#2D1967 #672D19 #19672D
tetradic
#2D1967 #67192C #536719 #196754
square
#2D1967 #67192C #536719 #196754
split-complementary
#2D1967 #675419 #2C6719
monochromatic
#0B0619 #170D36 #2D1967 #432598 #5831C9

Accessibility & contrast

On white

14.52
#2D1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1967
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1967#FFFFFF#000000##FFFFFF
##2D19671.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#162E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1967;
/* rgb */ color: rgb(45, 25, 103);
/* oklch */ color: oklch(29.5% 0.128 287.6);
Tailwind
colors: {
  custom: {
    50: '#6d5893',
    500: '#2d1967',
    950: '#000000',
  },
}
SCSS
$custom: #2d1967;
$custom-light: #6d5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1967",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 255.385,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29536,
    "c": 0.1276,
    "h": 287.6
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#2D1967
secondary
#859D3F
accent
#E444BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1967

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

Preview Lab → · Contrast checker → · Palette generator →

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