#2D1868#2D1868

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

Color values

HEX#2D1868
RGBrgb(45, 24, 104)
HSLhsl(256, 63%, 25%)
HSVhsv(256, 77%, 41%)
CMYKcmyk(56.7%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.55, 32.23, -43.14)
CIE-LCHlch(16.55, 53.85, 306.77°)
OKLaboklab(29.49% 0.0393 -0.124)
OKLCHoklch(29.49% 0.13 287.6)
XYZxyz(3.9068, 2.2104, 13.3148)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1868 #536818
analogous
#182B68 #2D1868 #551868
triadic
#2D1868 #682D18 #18682D
tetradic
#2D1868 #68182B #536818 #186855
square
#2D1868 #68182B #536818 #186855
split-complementary
#2D1868 #685518 #2B6818
monochromatic
#0B0619 #170D36 #2D1868 #43239A #582FCB

Accessibility & contrast

On white

14.56
#2D1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1868
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1868#FFFFFF#000000##FFFFFF
##2D18681.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.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: #2d1868;
/* rgb */ color: rgb(45, 24, 104);
/* oklch */ color: oklch(29.5% 0.130 287.6);
Tailwind
colors: {
  custom: {
    50: '#6d5794',
    500: '#2d1868',
    950: '#000000',
  },
}
SCSS
$custom: #2d1868;
$custom-light: #6d5794;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1868",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 255.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29491,
    "c": 0.13013,
    "h": 287.6
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#2D1868
secondary
#859E3E
accent
#E642BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1868

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

Preview Lab → · Contrast checker → · Palette generator →

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