#2D1E73#2D1E73

#2D1E73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 283.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2D1E73
RGBrgb(45, 30, 115)
HSLhsl(251, 59%, 28%)
HSVhsv(251, 74%, 45%)
CMYKcmyk(60.9%, 73.9%, 0%, 54.9%)
CIE-LABlab(18.90, 32.30, -46.45)
CIE-LCHlch(18.90, 56.57, 304.81°)
OKLaboklab(31.49% 0.0314 -0.1338)
OKLCHoklch(31.49% 0.137 283.2)
XYZxyz(4.6400, 2.7239, 16.4976)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E73 #64731E
analogous
#1E3973 #2D1E73 #571E73
triadic
#2D1E73 #732D1E #1E732D
tetradic
#2D1E73 #731E39 #64731E #1E7357
square
#2D1E73 #731E39 #64731E #1E7357
split-complementary
#2D1E73 #73571E #39731E
monochromatic
#090618 #1A1142 #2D1E73 #402BA4 #583FCD

Accessibility & contrast

On white

13.59
#2D1E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E73
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E73#FFFFFF#000000##FFFFFF
##2D1E731.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1e73;
/* rgb */ color: rgb(45, 30, 115);
/* oklch */ color: oklch(31.5% 0.137 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f5b9c',
    500: '#2d1e73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e73;
$custom-light: #6f5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e73",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 115
  },
  "hsl": {
    "h": 250.588,
    "s": 58.621,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.13741,
    "h": 283.2
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#2D1E73
secondary
#96A746
accent
#E246C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1E73

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

Preview Lab → · Contrast checker → · Palette generator →

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