#2D1A62#2D1A62

#2D1A62 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.120 H 288.9°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2D1A62
RGBrgb(45, 26, 98)
HSLhsl(256, 58%, 24%)
HSVhsv(256, 73%, 38%)
CMYKcmyk(54.1%, 73.5%, 0%, 61.6%)
CIE-LABlab(16.40, 29.13, -39.45)
CIE-LCHlch(16.40, 49.04, 306.45°)
OKLaboklab(29.2% 0.0387 -0.1132)
OKLCHoklch(29.2% 0.12 288.9)
XYZxyz(3.6555, 2.1784, 11.7808)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A62 #4F621A
analogous
#1A2B62 #2D1A62 #511A62
triadic
#2D1A62 #622D1A #1A622D
tetradic
#2D1A62 #621A2B #4F621A #1A6251
square
#2D1A62 #621A2B #4F621A #1A6251
split-complementary
#2D1A62 #62511A #2B621A
monochromatic
#0B0618 #170D32 #2D1A62 #432792 #5934C3

Accessibility & contrast

On white

14.63
#2D1A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A62
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A62#FFFFFF#000000##FFFFFF
##2D1A621.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#1A2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1a62;
/* rgb */ color: rgb(45, 26, 98);
/* oklch */ color: oklch(29.2% 0.120 288.9);
Tailwind
colors: {
  custom: {
    50: '#6c588f',
    500: '#2d1a62',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a62;
$custom-light: #6c588f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a62",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 255.833,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.292,
    "c": 0.11965,
    "h": 288.9
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1A62

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

Preview Lab → · Contrast checker → · Palette generator →

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