#2D1959#2D1959

#2D1959 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.109 H 292.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1959
RGBrgb(45, 25, 89)
HSLhsl(259, 56%, 22%)
HSVhsv(259, 72%, 35%)
CMYKcmyk(49.4%, 71.9%, 0%, 65.1%)
CIE-LABlab(15.35, 26.86, -35.15)
CIE-LCHlch(15.35, 44.23, 307.39°)
OKLaboklab(28.19% 0.0414 -0.1006)
OKLCHoklch(28.19% 0.109 292.4)
XYZxyz(3.2325, 1.9743, 9.6600)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1959 #455919
analogous
#192559 #2D1959 #4D1959
triadic
#2D1959 #592D19 #19592D
tetradic
#2D1959 #591925 #455919 #19594D
square
#2D1959 #591925 #455919 #19594D
split-complementary
#2D1959 #594D19 #255919
monochromatic
#0C0718 #150C29 #2D1959 #452689 #5D34B9

Accessibility & contrast

On white

15.06
#2D1959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1959
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1959#FFFFFF#000000##FFFFFF
##2D19591.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#202936
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1959;
/* rgb */ color: rgb(45, 25, 89);
/* oklch */ color: oklch(28.2% 0.109 292.4);
Tailwind
colors: {
  custom: {
    50: '#6b5788',
    500: '#2d1959',
    950: '#000000',
  },
}
SCSS
$custom: #2d1959;
$custom-light: #6b5788;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1959",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 258.75,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28195,
    "c": 0.10876,
    "h": 292.4
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#2D1959
secondary
#768F3E
accent
#DF48B0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1959

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

Preview Lab → · Contrast checker → · Palette generator →

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