#2D0C40#2D0C40

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

Color values

HEX#2D0C40
RGBrgb(45, 12, 64)
HSLhsl(278, 68%, 15%)
HSVhsv(278, 81%, 25%)
CMYKcmyk(29.7%, 81.2%, 0%, 74.9%)
CIE-LABlab(10.49, 26.98, -25.79)
CIE-LCHlch(10.49, 37.32, 316.29°)
OKLaboklab(24.03% 0.0614 -0.073)
OKLCHoklch(24.03% 0.095 310.1)
XYZxyz(2.1389, 1.1910, 4.9667)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C40 #1F400C
analogous
#130C40 #2D0C40 #400C39
triadic
#2D0C40 #402D0C #0C402D
tetradic
#2D0C40 #40130C #1F400C #0C3940
square
#2D0C40 #40130C #1F400C #0C3940
split-complementary
#2D0C40 #39400C #0C4013
monochromatic
#12051A #12051A #2D0C40 #511674 #751FA7

Accessibility & contrast

On white

16.96
#2D0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2D0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0C40
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C40#FFFFFF#000000##FFFFFF
##2D0C401.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#2A1825
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0c40;
/* rgb */ color: rgb(45, 12, 64);
/* oklch */ color: oklch(24.0% 0.095 310.1);
Tailwind
colors: {
  custom: {
    50: '#684e75',
    500: '#2d0c40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c40;
$custom-light: #684e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c40",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 278.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24034,
    "c": 0.09541,
    "h": 310.1
  },
  "luminance": 0.01191
}

Semantic roles & 50–950 ramp

primary
#2D0C40
secondary
#497C2C
accent
#EB3D7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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