#2D1F73#2D1F73

#2D1F73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.136 H 283.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2D1F73
RGBrgb(45, 31, 115)
HSLhsl(250, 58%, 29%)
HSVhsv(250, 73%, 45%)
CMYKcmyk(60.9%, 73%, 0%, 54.9%)
CIE-LABlab(19.12, 31.69, -46.09)
CIE-LCHlch(19.12, 55.93, 304.51°)
OKLaboklab(31.65% 0.0306 -0.1327)
OKLCHoklch(31.65% 0.136 283)
XYZxyz(4.6657, 2.7754, 16.5062)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F73 #65731F
analogous
#1F3B73 #2D1F73 #571F73
triadic
#2D1F73 #732D1F #1F732D
tetradic
#2D1F73 #731F3B #65731F #1F7357
square
#2D1F73 #731F3B #65731F #1F7357
split-complementary
#2D1F73 #73571F #3B731F
monochromatic
#090618 #1A1243 #2D1F73 #402CA3 #5841CC

Accessibility & contrast

On white

13.50
#2D1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F73
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F73#FFFFFF#000000##FFFFFF
##2D1F731.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#043546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1f73;
/* rgb */ color: rgb(45, 31, 115);
/* oklch */ color: oklch(31.6% 0.136 283.0);
Tailwind
colors: {
  custom: {
    50: '#6f5c9c',
    500: '#2d1f73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f73;
$custom-light: #6f5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f73",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 250,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31647,
    "c": 0.13619,
    "h": 283
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#2D1F73
secondary
#97A747
accent
#E147C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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