#2D1A4F#2D1A4F

#2D1A4F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.093 H 296.2°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2D1A4F
RGBrgb(45, 26, 79)
HSLhsl(262, 50%, 21%)
HSVhsv(262, 67%, 31%)
CMYKcmyk(43%, 67.1%, 0%, 69%)
CIE-LABlab(14.74, 23.06, -29.36)
CIE-LCHlch(14.74, 37.33, 308.15°)
OKLaboklab(27.49% 0.0412 -0.0836)
OKLCHoklch(27.49% 0.093 296.2)
XYZxyz(2.8625, 1.8611, 7.6040)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A4F #3C4F1A
analogous
#1A224F #2D1A4F #471A4F
triadic
#2D1A4F #4F2D1A #1A4F2D
tetradic
#2D1A4F #4F1A22 #3C4F1A #1A4F47
square
#2D1A4F #4F1A22 #3C4F1A #1A4F47
split-complementary
#2D1A4F #4F471A #224F1A
monochromatic
#0D0817 #130B21 #2D1A4F #47297D #6138AB

Accessibility & contrast

On white

15.30
#2D1A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D1A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A4F
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A4F#FFFFFF#000000##FFFFFF
##2D1A4F1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#02244E
Tritanopia (blue-blind)
#252631
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1a4f;
/* rgb */ color: rgb(45, 26, 79);
/* oklch */ color: oklch(27.5% 0.093 296.2);
Tailwind
colors: {
  custom: {
    50: '#695781',
    500: '#2d1a4f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a4f;
$custom-light: #695781;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a4f",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 261.509,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27486,
    "c": 0.09317,
    "h": 296.2
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#2D1A4F
secondary
#6C8540
accent
#DA4EA8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D1A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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