#2D1761#2D1761

#2D1761 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.122 H 290.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2D1761
RGBrgb(45, 23, 97)
HSLhsl(258, 62%, 24%)
HSVhsv(258, 76%, 38%)
CMYKcmyk(53.6%, 76.3%, 0%, 62%)
CIE-LABlab(15.66, 30.59, -39.98)
CIE-LCHlch(15.66, 50.34, 307.42°)
OKLaboklab(28.65% 0.042 -0.1148)
OKLCHoklch(28.65% 0.122 290.1)
XYZxyz(3.5456, 2.0336, 11.5126)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1761 #4B6117
analogous
#172661 #2D1761 #521761
triadic
#2D1761 #612D17 #17612D
tetradic
#2D1761 #611726 #4B6117 #176152
square
#2D1761 #611726 #4B6117 #176152
split-complementary
#2D1761 #615217 #266117
monochromatic
#0B0619 #160B30 #2D1761 #442392 #5B2EC4

Accessibility & contrast

On white

14.93
#2D1761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1761
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1761#FFFFFF#000000##FFFFFF
##2D17611.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#1B2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1761;
/* rgb */ color: rgb(45, 23, 97);
/* oklch */ color: oklch(28.6% 0.122 290.1);
Tailwind
colors: {
  custom: {
    50: '#6c568f',
    500: '#2d1761',
    950: '#000000',
  },
}
SCSS
$custom: #2d1761;
$custom-light: #6c568f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1761",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 257.838,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28647,
    "c": 0.12221,
    "h": 290.1
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#2D1761
secondary
#7C983C
accent
#E543B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1761

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

Preview Lab → · Contrast checker → · Palette generator →

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