#2D1050#2D1050

#2D1050 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 299.2°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2D1050
RGBrgb(45, 16, 80)
HSLhsl(267, 67%, 19%)
HSVhsv(267, 80%, 31%)
CMYKcmyk(43.7%, 80%, 0%, 68.6%)
CIE-LABlab(12.66, 29.33, -33.43)
CIE-LCHlch(12.66, 44.47, 311.26°)
OKLaboklab(26.02% 0.0534 -0.0955)
OKLCHoklch(26.02% 0.109 299.2)
XYZxyz(2.7151, 1.5076, 7.7358)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1050 #335010
analogous
#101350 #2D1050 #4D1050
triadic
#2D1050 #502D10 #10502D
tetradic
#2D1050 #501013 #335010 #10504D
square
#2D1050 #501013 #335010 #10504D
split-complementary
#2D1050 #504D10 #135010
monochromatic
#0E051A #10061D #2D1050 #4A1A83 #6624B6

Accessibility & contrast

On white

16.13
#2D1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1050
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1050#FFFFFF#000000##FFFFFF
##2D10501.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#25202F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1050;
/* rgb */ color: rgb(45, 16, 80);
/* oklch */ color: oklch(26.0% 0.109 299.2);
Tailwind
colors: {
  custom: {
    50: '#6a5182',
    500: '#2d1050',
    950: '#000000',
  },
}
SCSS
$custom: #2d1050;
$custom-light: #6a5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1050",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 267.188,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26016,
    "c": 0.10941,
    "h": 299.2
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#2D1050
secondary
#628A32
accent
#EA3E9C
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2D1050

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

Preview Lab → · Contrast checker → · Palette generator →

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