#2D0A40#2D0A40

#2D0A40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.098 H 310.5°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#2D0A40
RGBrgb(45, 10, 64)
HSLhsl(279, 73%, 15%)
HSVhsv(279, 84%, 25%)
CMYKcmyk(29.7%, 84.4%, 0%, 74.9%)
CIE-LABlab(10.15, 27.96, -26.34)
CIE-LCHlch(10.15, 38.41, 316.70°)
OKLaboklab(23.79% 0.0638 -0.0746)
OKLCHoklch(23.79% 0.098 310.5)
XYZxyz(2.1160, 1.1452, 4.9591)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0A40 #1D400A
analogous
#120A40 #2D0A40 #400A38
triadic
#2D0A40 #402D0A #0A402D
tetradic
#2D0A40 #40120A #1D400A #0A3840
square
#2D0A40 #40120A #1D400A #0A3840
split-complementary
#2D0A40 #38400A #0A4012
monochromatic
#13041A #13041A #2D0A40 #521275 #771BAA

Accessibility & contrast

On white

17.09
#2D0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0A40
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0A40#FFFFFF#000000##FFFFFF
##2D0A401.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#2A1724
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0a40;
/* rgb */ color: rgb(45, 10, 64);
/* oklch */ color: oklch(23.8% 0.098 310.5);
Tailwind
colors: {
  custom: {
    50: '#694d75',
    500: '#2d0a40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0a40;
$custom-light: #694d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0a40",
  "rgb": {
    "r": 45,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 278.889,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2379,
    "c": 0.09816,
    "h": 310.5
  },
  "luminance": 0.01145
}

Semantic roles & 50–950 ramp

primary
#2D0A40
secondary
#467D29
accent
#F03879
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0A40

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

Preview Lab → · Contrast checker → · Palette generator →

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