#2D1985#2D1985

#2D1985 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.166 H 280.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2D1985
RGBrgb(45, 25, 133)
HSLhsl(251, 68%, 31%)
HSVhsv(251, 81%, 52%)
CMYKcmyk(66.2%, 81.2%, 0%, 47.8%)
CIE-LABlab(19.83, 40.85, -56.39)
CIE-LCHlch(19.83, 69.63, 305.92°)
OKLaboklab(32.71% 0.0303 -0.1628)
OKLCHoklch(32.71% 0.166 280.5)
XYZxyz(5.6621, 2.9462, 22.4560)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1985 #718519
analogous
#193B85 #2D1985 #631985
triadic
#2D1985 #852D19 #19852D
tetradic
#2D1985 #85193B #718519 #198563
square
#2D1985 #85193B #718519 #198563
split-complementary
#2D1985 #856319 #3B8519
monochromatic
#0A061E #1C0F51 #2D1985 #3E23B9 #5B3EDB

Accessibility & contrast

On white

13.21
#2D1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1985
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1985#FFFFFF#000000##FFFFFF
##2D19851.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1985;
/* rgb */ color: rgb(45, 25, 133);
/* oklch */ color: oklch(32.7% 0.166 280.5);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2d1985',
    950: '#000000',
  },
}
SCSS
$custom: #2d1985;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1985",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 251.111,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32713,
    "c": 0.16557,
    "h": 280.5
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#2D1985
secondary
#A3B941
accent
#EB3DCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1985

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

Preview Lab → · Contrast checker → · Palette generator →

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