#2D1C80#2D1C80

#2D1C80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.156 H 281.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2D1C80
RGBrgb(45, 28, 128)
HSLhsl(250, 64%, 31%)
HSVhsv(250, 78%, 50%)
CMYKcmyk(64.8%, 78.1%, 0%, 49.8%)
CIE-LABlab(19.83, 37.69, -53.23)
CIE-LCHlch(19.83, 65.23, 305.30°)
OKLaboklab(32.55% 0.0299 -0.1536)
OKLCHoklch(32.55% 0.156 281)
XYZxyz(5.3925, 2.9465, 20.7025)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C80 #6F801C
analogous
#1C3D80 #2D1C80 #5F1C80
triadic
#2D1C80 #802D1C #1C802D
tetradic
#2D1C80 #801C3D #6F801C #1C805F
square
#2D1C80 #801C3D #6F801C #1C805F
split-complementary
#2D1C80 #805F1C #3D801C
monochromatic
#0A061C #1B114E #2D1C80 #3F27B2 #5A41D5

Accessibility & contrast

On white

13.21
#2D1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1C80
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C80#FFFFFF#000000##FFFFFF
##2D1C801.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1c80;
/* rgb */ color: rgb(45, 28, 128);
/* oklch */ color: oklch(32.6% 0.156 281.0);
Tailwind
colors: {
  custom: {
    50: '#725ba6',
    500: '#2d1c80',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c80;
$custom-light: #725ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c80",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 250.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32551,
    "c": 0.15647,
    "h": 281
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#2D1C80
secondary
#A1B344
accent
#E741CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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