#2D0A42#2D0A42

#2D0A42 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.100 H 309.1°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#2D0A42
RGBrgb(45, 10, 66)
HSLhsl(278, 74%, 15%)
HSVhsv(278, 85%, 26%)
CMYKcmyk(31.8%, 84.8%, 0%, 74.1%)
CIE-LABlab(10.32, 28.47, -27.48)
CIE-LCHlch(10.32, 39.57, 316.02°)
OKLaboklab(23.97% 0.0634 -0.078)
OKLCHoklch(23.97% 0.1 309.1)
XYZxyz(2.1739, 1.1684, 5.2642)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0A42 #1F420A
analogous
#110A42 #2D0A42 #420A3B
triadic
#2D0A42 #422D0A #0A422D
tetradic
#2D0A42 #42110A #1F420A #0A3B42
square
#2D0A42 #42110A #1F420A #0A3B42
split-complementary
#2D0A42 #3B420A #0A4211
monochromatic
#12041B #12041B #2D0A42 #511277 #751AAC

Accessibility & contrast

On white

17.02
#2D0A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2D0A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0A42
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0A42#FFFFFF#000000##FFFFFF
##2D0A421.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#2A1725
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0a42;
/* rgb */ color: rgb(45, 10, 66);
/* oklch */ color: oklch(24.0% 0.100 309.1);
Tailwind
colors: {
  custom: {
    50: '#694d77',
    500: '#2d0a42',
    950: '#000000',
  },
}
SCSS
$custom: #2d0a42;
$custom-light: #694d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0a42",
  "rgb": {
    "r": 45,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 277.5,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23969,
    "c": 0.10045,
    "h": 309.1
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#2D0A42
secondary
#497F29
accent
#F0377D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0A42

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

Preview Lab → · Contrast checker → · Palette generator →

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