#2D1765#2D1765

#2D1765 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 288.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2D1765
RGBrgb(45, 23, 101)
HSLhsl(257, 63%, 24%)
HSVhsv(257, 77%, 40%)
CMYKcmyk(55.4%, 77.2%, 0%, 60.4%)
CIE-LABlab(16.05, 31.85, -41.99)
CIE-LCHlch(16.05, 52.70, 307.18°)
OKLaboklab(29.05% 0.041 -0.1207)
OKLCHoklch(29.05% 0.127 288.8)
XYZxyz(3.7369, 2.1101, 12.5198)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1765 #4F6517
analogous
#172865 #2D1765 #541765
triadic
#2D1765 #652D17 #17652D
tetradic
#2D1765 #651728 #4F6517 #176554
square
#2D1765 #651728 #4F6517 #176554
split-complementary
#2D1765 #655417 #286517
monochromatic
#0B0619 #170C33 #2D1765 #432297 #592EC9

Accessibility & contrast

On white

14.77
#2D1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1765
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1765#FFFFFF#000000##FFFFFF
##2D17651.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#182C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1765;
/* rgb */ color: rgb(45, 23, 101);
/* oklch */ color: oklch(29.0% 0.127 288.8);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2d1765',
    950: '#000000',
  },
}
SCSS
$custom: #2d1765;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1765",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 256.923,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29046,
    "c": 0.12743,
    "h": 288.8
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#2D1765
secondary
#819B3C
accent
#E642B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1765

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

Preview Lab → · Contrast checker → · Palette generator →

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