#2D1A50#2D1A50

#2D1A50 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.095 H 295.8°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2D1A50
RGBrgb(45, 26, 80)
HSLhsl(261, 51%, 21%)
HSVhsv(261, 68%, 31%)
CMYKcmyk(43.7%, 67.5%, 0%, 68.6%)
CIE-LABlab(14.82, 23.37, -29.91)
CIE-LCHlch(14.82, 37.96, 308.00°)
OKLaboklab(27.57% 0.0411 -0.0852)
OKLCHoklch(27.57% 0.095 295.8)
XYZxyz(2.8992, 1.8758, 7.7972)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A50 #3D501A
analogous
#1A2250 #2D1A50 #481A50
triadic
#2D1A50 #502D1A #1A502D
tetradic
#2D1A50 #501A22 #3D501A #1A5048
square
#2D1A50 #501A22 #3D501A #1A5048
split-complementary
#2D1A50 #50481A #22501A
monochromatic
#0D0817 #130B22 #2D1A50 #47297E #6138AC

Accessibility & contrast

On white

15.27
#2D1A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A50
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A50#FFFFFF#000000##FFFFFF
##2D1A501.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#01254F
Tritanopia (blue-blind)
#242632
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d1a50;
/* rgb */ color: rgb(45, 26, 80);
/* oklch */ color: oklch(27.6% 0.095 295.8);
Tailwind
colors: {
  custom: {
    50: '#695781',
    500: '#2d1a50',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a50;
$custom-light: #695781;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a50",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 261.111,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2757,
    "c": 0.09461,
    "h": 295.8
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#2D1A50
secondary
#6D8640
accent
#DA4DA9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D1A50

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

Preview Lab → · Contrast checker → · Palette generator →

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