#2D1A61#2D1A61

#2D1A61 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.118 H 289.2°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2D1A61
RGBrgb(45, 26, 97)
HSLhsl(256, 58%, 24%)
HSVhsv(256, 73%, 38%)
CMYKcmyk(53.6%, 73.2%, 0%, 62%)
CIE-LABlab(16.30, 28.81, -38.94)
CIE-LCHlch(16.30, 48.44, 306.50°)
OKLaboklab(29.1% 0.0389 -0.1117)
OKLCHoklch(29.1% 0.118 289.2)
XYZxyz(3.6086, 2.1596, 11.5336)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A61 #4E611A
analogous
#1A2B61 #2D1A61 #511A61
triadic
#2D1A61 #612D1A #1A612D
tetradic
#2D1A61 #611A2B #4E611A #1A6151
square
#2D1A61 #611A2B #4E611A #1A6151
split-complementary
#2D1A61 #61511A #2B611A
monochromatic
#0B0618 #170D31 #2D1A61 #432791 #5A34C2

Accessibility & contrast

On white

14.66
#2D1A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A61
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A61#FFFFFF#000000##FFFFFF
##2D1A611.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#1B2C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1a61;
/* rgb */ color: rgb(45, 26, 97);
/* oklch */ color: oklch(29.1% 0.118 289.2);
Tailwind
colors: {
  custom: {
    50: '#6c588f',
    500: '#2d1a61',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a61;
$custom-light: #6c588f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a61",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 256.056,
    "s": 57.724,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29104,
    "c": 0.11829,
    "h": 289.2
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#2D1A61
secondary
#809740
accent
#E147B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1A61

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

Preview Lab → · Contrast checker → · Palette generator →

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