#2D0C3E#2D0C3E

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

Color values

HEX#2D0C3E
RGBrgb(45, 12, 62)
HSLhsl(280, 68%, 15%)
HSVhsv(280, 81%, 24%)
CMYKcmyk(27.4%, 80.6%, 0%, 75.7%)
CIE-LABlab(10.32, 26.45, -24.63)
CIE-LCHlch(10.32, 36.15, 317.04°)
OKLaboklab(23.86% 0.0618 -0.0696)
OKLCHoklch(23.86% 0.093 311.6)
XYZxyz(2.0830, 1.1687, 4.6723)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0C3E #1D3E0C
analogous
#140C3E #2D0C3E #3E0C36
triadic
#2D0C3E #3E2D0C #0C3E2D
tetradic
#2D0C3E #3E140C #1D3E0C #0C363E
square
#2D0C3E #3E140C #1D3E0C #0C363E
split-complementary
#2D0C3E #363E0C #0C3E14
monochromatic
#13051A #13051A #2D0C3E #521671 #7720A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D0C3E#FFFFFF#000000##FFFFFF
##2D0C3E1.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)
#001B3F
Deuteranopia (green-blind)
#061D3D
Tritanopia (blue-blind)
#2B1724
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2d0c3e;
/* rgb */ color: rgb(45, 12, 62);
/* oklch */ color: oklch(23.9% 0.093 311.6);
Tailwind
colors: {
  custom: {
    50: '#684e74',
    500: '#2d0c3e',
    950: '#000000',
  },
}
SCSS
$custom: #2d0c3e;
$custom-light: #684e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0c3e",
  "rgb": {
    "r": 45,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 279.6,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23863,
    "c": 0.09305,
    "h": 311.6
  },
  "luminance": 0.01169
}

Semantic roles & 50–950 ramp

primary
#2D0C3E
secondary
#467A2C
accent
#EA3D78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D0C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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