#2D1A6F#2D1A6F

#2D1A6F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.137 H 285.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2D1A6F
RGBrgb(45, 26, 111)
HSLhsl(253, 62%, 27%)
HSVhsv(253, 77%, 44%)
CMYKcmyk(59.5%, 76.6%, 0%, 56.5%)
CIE-LABlab(17.66, 33.33, -45.89)
CIE-LCHlch(17.66, 56.72, 305.99°)
OKLaboklab(30.49% 0.0358 -0.1321)
OKLCHoklch(30.49% 0.137 285.2)
XYZxyz(4.3200, 2.4441, 15.2800)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A6F #5C6F1A
analogous
#1A326F #2D1A6F #581A6F
triadic
#2D1A6F #6F2D1A #1A6F2D
tetradic
#2D1A6F #6F1A32 #5C6F1A #1A6F58
square
#2D1A6F #6F1A32 #5C6F1A #1A6F58
split-complementary
#2D1A6F #6F581A #326F1A
monochromatic
#0A0619 #190E3D #2D1A6F #4126A1 #5734CF

Accessibility & contrast

On white

14.11
#2D1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D1A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A6F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A6F#FFFFFF#000000##FFFFFF
##2D1A6F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#0C3143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1a6f;
/* rgb */ color: rgb(45, 26, 111);
/* oklch */ color: oklch(30.5% 0.137 285.2);
Tailwind
colors: {
  custom: {
    50: '#6e5999',
    500: '#2d1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a6f;
$custom-light: #6e5999;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a6f",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 253.412,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3049,
    "c": 0.13687,
    "h": 285.2
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#2D1A6F
secondary
#8EA441
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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