#2D0C3F#2D0C3F

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

Color values

HEX#2D0C3F
RGBrgb(45, 12, 63)
HSLhsl(279, 68%, 15%)
HSVhsv(279, 81%, 25%)
CMYKcmyk(28.6%, 81%, 0%, 75.3%)
CIE-LABlab(10.41, 26.71, -25.21)
CIE-LCHlch(10.41, 36.73, 316.66°)
OKLaboklab(23.95% 0.0616 -0.0713)
OKLCHoklch(23.95% 0.094 310.8)
XYZxyz(2.1107, 1.1798, 4.8182)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C3F #1E3F0C
analogous
#140C3F #2D0C3F #3F0C38
triadic
#2D0C3F #3F2D0C #0C3F2D
tetradic
#2D0C3F #3F140C #1E3F0C #0C383F
square
#2D0C3F #3F140C #1E3F0C #0C383F
split-complementary
#2D0C3F #383F0C #0C3F14
monochromatic
#12051A #12051A #2D0C3F #521672 #7620A6

Accessibility & contrast

On white

16.99
#2D0C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D0C3F
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0C3F#FFFFFF#000000##FFFFFF
##2D0C3F1.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#051D3E
Tritanopia (blue-blind)
#2B1724
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0c3f;
/* rgb */ color: rgb(45, 12, 63);
/* oklch */ color: oklch(23.9% 0.094 310.8);
Tailwind
colors: {
  custom: {
    50: '#684e74',
    500: '#2d0c3f',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c3f;
$custom-light: #684e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c3f",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 278.824,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23948,
    "c": 0.09423,
    "h": 310.8
  },
  "luminance": 0.0118
}

Semantic roles & 50–950 ramp

primary
#2D0C3F
secondary
#487B2C
accent
#EB3D7A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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