#2D1968#2D1968

#2D1968 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.6% C 0.129 H 287.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2D1968
RGBrgb(45, 25, 104)
HSLhsl(255, 61%, 25%)
HSVhsv(255, 76%, 41%)
CMYKcmyk(56.7%, 76%, 0%, 59.2%)
CIE-LABlab(16.76, 31.66, -42.81)
CIE-LCHlch(16.76, 53.24, 306.49°)
OKLaboklab(29.64% 0.0384 -0.1231)
OKLCHoklch(29.64% 0.129 287.3)
XYZxyz(3.9278, 2.2524, 13.3218)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1968 #546819
analogous
#192C68 #2D1968 #541968
triadic
#2D1968 #682D19 #19682D
tetradic
#2D1968 #68192C #546819 #196854
square
#2D1968 #68192C #546819 #196854
split-complementary
#2D1968 #685419 #2C6819
monochromatic
#0B0619 #180D37 #2D1968 #422599 #5831CB

Accessibility & contrast

On white

14.48
#2D1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1968
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1968#FFFFFF#000000##FFFFFF
##2D19681.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1968;
/* rgb */ color: rgb(45, 25, 104);
/* oklch */ color: oklch(29.6% 0.129 287.3);
Tailwind
colors: {
  custom: {
    50: '#6d5894',
    500: '#2d1968',
    950: '#000000',
  },
}
SCSS
$custom: #2d1968;
$custom-light: #6d5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1968",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 255.19,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29636,
    "c": 0.12892,
    "h": 287.3
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#2D1968
secondary
#869E3F
accent
#E443BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1968

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

Preview Lab → · Contrast checker → · Palette generator →

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