#2D1A7F#2D1A7F

#2D1A7F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.157 H 281.5°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1A7F
RGBrgb(45, 26, 127)
HSLhsl(251, 66%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(64.6%, 79.5%, 0%, 50.2%)
CIE-LABlab(19.34, 38.45, -53.40)
CIE-LCHlch(19.34, 65.80, 305.76°)
OKLaboklab(32.18% 0.0315 -0.154)
OKLCHoklch(32.18% 0.157 281.5)
XYZxyz(5.2811, 2.8286, 20.3422)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A7F #6C7F1A
analogous
#1A3A7F #2D1A7F #5F1A7F
triadic
#2D1A7F #7F2D1A #1A7F2D
tetradic
#2D1A7F #7F1A3A #6C7F1A #1A7F5F
square
#2D1A7F #7F1A3A #6C7F1A #1A7F5F
split-complementary
#2D1A7F #7F5F1A #3A7F1A
monochromatic
#090519 #1B104C #2D1A7F #3F24B2 #593CD7

Accessibility & contrast

On white

13.41
#2D1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A7F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A7F#FFFFFF#000000##FFFFFF
##2D1A7F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1a7f;
/* rgb */ color: rgb(45, 26, 127);
/* oklch */ color: oklch(32.2% 0.157 281.5);
Tailwind
colors: {
  custom: {
    50: '#725aa5',
    500: '#2d1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a7f;
$custom-light: #725aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a7f",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 251.287,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32179,
    "c": 0.15723,
    "h": 281.5
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2D1A7F
secondary
#9EB342
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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