#2D1D73#2D1D73

#2D1D73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.139 H 283.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1D73
RGBrgb(45, 29, 115)
HSLhsl(251, 60%, 28%)
HSVhsv(251, 75%, 45%)
CMYKcmyk(60.9%, 74.8%, 0%, 54.9%)
CIE-LABlab(18.69, 32.89, -46.80)
CIE-LCHlch(18.69, 57.20, 305.10°)
OKLaboklab(31.34% 0.0323 -0.1348)
OKLCHoklch(31.34% 0.139 283.5)
XYZxyz(4.6151, 2.6741, 16.4893)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D73 #63731D
analogous
#1D3873 #2D1D73 #581D73
triadic
#2D1D73 #732D1D #1D732D
tetradic
#2D1D73 #731D38 #63731D #1D7358
square
#2D1D73 #731D38 #63731D #1D7358
split-complementary
#2D1D73 #73581D #38731D
monochromatic
#0A0618 #1A1142 #2D1D73 #4029A4 #583CCE

Accessibility & contrast

On white

13.68
#2D1D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D73
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D73#FFFFFF#000000##FFFFFF
##2D1D731.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#043446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1d73;
/* rgb */ color: rgb(45, 29, 115);
/* oklch */ color: oklch(31.3% 0.139 283.5);
Tailwind
colors: {
  custom: {
    50: '#6f5b9c',
    500: '#2d1d73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d73;
$custom-light: #6f5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d73",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 251.163,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31339,
    "c": 0.1386,
    "h": 283.5
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#2D1D73
secondary
#95A745
accent
#E345C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1D73

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

Preview Lab → · Contrast checker → · Palette generator →

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