#2D1677#2D1677

#2D1677 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.151 H 284.0°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#2D1677
RGBrgb(45, 22, 119)
HSLhsl(254, 69%, 28%)
HSVhsv(254, 82%, 47%)
CMYKcmyk(62.2%, 81.5%, 0%, 53.3%)
CIE-LABlab(17.75, 38.01, -50.91)
CIE-LCHlch(17.75, 63.54, 306.75°)
OKLaboklab(30.81% 0.0365 -0.1468)
OKLCHoklch(30.81% 0.151 284)
XYZxyz(4.6978, 2.4633, 17.6771)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1677 #607716
analogous
#162F77 #2D1677 #5E1677
triadic
#2D1677 #772D16 #16772D
tetradic
#2D1677 #77162F #607716 #16775E
square
#2D1677 #77162F #607716 #16775E
split-complementary
#2D1677 #775E16 #2F7716
monochromatic
#0A051A #190C43 #2D1677 #4120AB #572FD9

Accessibility & contrast

On white

14.07
#2D1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1677
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1677#FFFFFF#000000##FFFFFF
##2D16771.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1677;
/* rgb */ color: rgb(45, 22, 119);
/* oklch */ color: oklch(30.8% 0.151 284.0);
Tailwind
colors: {
  custom: {
    50: '#70579f',
    500: '#2d1677',
    950: '#000000',
  },
}
SCSS
$custom: #2d1677;
$custom-light: #70579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1677",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 254.227,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30806,
    "c": 0.15124,
    "h": 284
  },
  "luminance": 0.02464
}

Semantic roles & 50–950 ramp

primary
#2D1677
secondary
#92AC3C
accent
#EC3CC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1677

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

Preview Lab → · Contrast checker → · Palette generator →

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