#2D1764#2D1764

#2D1764 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.126 H 289.1°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2D1764
RGBrgb(45, 23, 100)
HSLhsl(257, 63%, 24%)
HSVhsv(257, 77%, 39%)
CMYKcmyk(55%, 77%, 0%, 60.8%)
CIE-LABlab(15.96, 31.54, -41.49)
CIE-LCHlch(15.96, 52.11, 307.24°)
OKLaboklab(28.95% 0.0412 -0.1192)
OKLCHoklch(28.95% 0.126 289.1)
XYZxyz(3.6882, 2.0906, 12.2633)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1764 #4E6417
analogous
#172864 #2D1764 #541764
triadic
#2D1764 #642D17 #17642D
tetradic
#2D1764 #641728 #4E6417 #176454
square
#2D1764 #641728 #4E6417 #176454
split-complementary
#2D1764 #645417 #286417
monochromatic
#0B0619 #170C32 #2D1764 #432296 #5A2EC8

Accessibility & contrast

On white

14.81
#2D1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1764
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1764#FFFFFF#000000##FFFFFF
##2D17641.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#192C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1764;
/* rgb */ color: rgb(45, 23, 100);
/* oklch */ color: oklch(28.9% 0.126 289.1);
Tailwind
colors: {
  custom: {
    50: '#6d5691',
    500: '#2d1764',
    950: '#000000',
  },
}
SCSS
$custom: #2d1764;
$custom-light: #6d5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1764",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 257.143,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28945,
    "c": 0.12613,
    "h": 289.1
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#2D1764
secondary
#809A3C
accent
#E642B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1764

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

Preview Lab → · Contrast checker → · Palette generator →

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