#2D1A7C#2D1A7C

#2D1A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 282.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2D1A7C
RGBrgb(45, 26, 124)
HSLhsl(252, 65%, 29%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(63.7%, 79%, 0%, 51.4%)
CIE-LABlab(19.02, 37.50, -52.02)
CIE-LCHlch(19.02, 64.13, 305.78°)
OKLaboklab(31.86% 0.0323 -0.15)
OKLCHoklch(31.86% 0.153 282.2)
XYZxyz(5.0885, 2.7516, 19.3278)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A7C #697C1A
analogous
#1A387C #2D1A7C #5E1A7C
triadic
#2D1A7C #7C2D1A #1A7C2D
tetradic
#2D1A7C #7C1A38 #697C1A #1A7C5E
square
#2D1A7C #7C1A38 #697C1A #1A7C5E
split-complementary
#2D1A7C #7C5E1A #387C1A
monochromatic
#090519 #1B0F49 #2D1A7C #3F25AF #593BD6

Accessibility & contrast

On white

13.54
#2D1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A7C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A7C#FFFFFF#000000##FFFFFF
##2D1A7C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1a7c;
/* rgb */ color: rgb(45, 26, 124);
/* oklch */ color: oklch(31.9% 0.153 282.2);
Tailwind
colors: {
  custom: {
    50: '#7159a3',
    500: '#2d1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a7c;
$custom-light: #7159a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a7c",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 251.633,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31855,
    "c": 0.15348,
    "h": 282.2
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#2D1A7C
secondary
#9BB042
accent
#E840C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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