#2D1767#2D1767

#2D1767 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.130 H 288.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2D1767
RGBrgb(45, 23, 103)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 78%, 40%)
CMYKcmyk(56.3%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.25, 32.48, -42.98)
CIE-LCHlch(16.25, 53.87, 307.08°)
OKLaboklab(29.25% 0.0405 -0.1236)
OKLCHoklch(29.25% 0.13 288.1)
XYZxyz(3.8360, 2.1498, 13.0422)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1767 #516717
analogous
#172967 #2D1767 #551767
triadic
#2D1767 #672D17 #17672D
tetradic
#2D1767 #671729 #516717 #176755
square
#2D1767 #671729 #516717 #176755
split-complementary
#2D1767 #675517 #296717
monochromatic
#0B0619 #170C35 #2D1767 #432299 #592DCB

Accessibility & contrast

On white

14.69
#2D1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1767
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1767#FFFFFF#000000##FFFFFF
##2D17671.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#162D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1767;
/* rgb */ color: rgb(45, 23, 103);
/* oklch */ color: oklch(29.2% 0.130 288.1);
Tailwind
colors: {
  custom: {
    50: '#6d5693',
    500: '#2d1767',
    950: '#000000',
  },
}
SCSS
$custom: #2d1767;
$custom-light: #6d5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1767",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 256.5,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29248,
    "c": 0.13002,
    "h": 288.1
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#2D1767
secondary
#839D3D
accent
#E741B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1767

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

Preview Lab → · Contrast checker → · Palette generator →

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