#2D1877#2D1877

#2D1877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.149 H 283.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2D1877
RGBrgb(45, 24, 119)
HSLhsl(253, 66%, 28%)
HSVhsv(253, 80%, 47%)
CMYKcmyk(62.2%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.11, 36.98, -50.32)
CIE-LCHlch(18.11, 62.45, 306.31°)
OKLaboklab(31.06% 0.0352 -0.1451)
OKLCHoklch(31.06% 0.149 283.6)
XYZxyz(4.7376, 2.5428, 17.6903)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1877 #627718
analogous
#183277 #2D1877 #5C1877
triadic
#2D1877 #772D18 #18772D
tetradic
#2D1877 #771832 #627718 #18775C
square
#2D1877 #771832 #627718 #18775C
split-complementary
#2D1877 #775C18 #327718
monochromatic
#0A0519 #1A0E44 #2D1877 #4022AA #5733D6

Accessibility & contrast

On white

13.92
#2D1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1877
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1877#FFFFFF#000000##FFFFFF
##2D18771.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1877;
/* rgb */ color: rgb(45, 24, 119);
/* oklch */ color: oklch(31.1% 0.149 283.6);
Tailwind
colors: {
  custom: {
    50: '#70589f',
    500: '#2d1877',
    950: '#000000',
  },
}
SCSS
$custom: #2d1877;
$custom-light: #70589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1877",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 253.263,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31057,
    "c": 0.14925,
    "h": 283.6
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#2D1877
secondary
#94AC3F
accent
#E93EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2D1877

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

Preview Lab → · Contrast checker → · Palette generator →

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