#2D0B40#2D0B40

#2D0B40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.097 H 310.3°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#2D0B40
RGBrgb(45, 11, 64)
HSLhsl(278, 71%, 15%)
HSVhsv(278, 83%, 25%)
CMYKcmyk(29.7%, 82.8%, 0%, 74.9%)
CIE-LABlab(10.31, 27.48, -26.07)
CIE-LCHlch(10.31, 37.88, 316.50°)
OKLaboklab(23.91% 0.0626 -0.0738)
OKLCHoklch(23.91% 0.097 310.3)
XYZxyz(2.1271, 1.1674, 4.9628)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0B40 #1E400B
analogous
#130B40 #2D0B40 #400B39
triadic
#2D0B40 #402D0B #0B402D
tetradic
#2D0B40 #40130B #1E400B #0B3940
square
#2D0B40 #40130B #1E400B #0B3940
split-complementary
#2D0B40 #39400B #0B4013
monochromatic
#12041A #12041A #2D0B40 #521474 #761DA8

Accessibility & contrast

On white

17.03
#2D0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0B40
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0B40#FFFFFF#000000##FFFFFF
##2D0B401.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#031D3F
Tritanopia (blue-blind)
#2A1724
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0b40;
/* rgb */ color: rgb(45, 11, 64);
/* oklch */ color: oklch(23.9% 0.097 310.3);
Tailwind
colors: {
  custom: {
    50: '#694e75',
    500: '#2d0b40',
    950: '#000000',
  },
}
SCSS
$custom: #2d0b40;
$custom-light: #694e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0b40",
  "rgb": {
    "r": 45,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 278.491,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23909,
    "c": 0.09682,
    "h": 310.3
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#2D0B40
secondary
#487D2A
accent
#ED3A7B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2D0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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