#2C0C3F#2C0C3F

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

Color values

HEX#2C0C3F
RGBrgb(44, 12, 63)
HSLhsl(278, 68%, 15%)
HSVhsv(278, 81%, 25%)
CMYKcmyk(30.2%, 81%, 0%, 75.3%)
CIE-LABlab(10.24, 26.47, -25.49)
CIE-LCHlch(10.24, 36.75, 316.08°)
OKLaboklab(23.79% 0.06 -0.0722)
OKLCHoklch(23.79% 0.094 309.7)
XYZxyz(2.0672, 1.1573, 4.8162)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C3F #1F3F0C
analogous
#130C3F #2C0C3F #3F0C39
triadic
#2C0C3F #3F2C0C #0C3F2C
tetradic
#2C0C3F #3F130C #1F3F0C #0C393F
square
#2C0C3F #3F130C #1F3F0C #0C393F
split-complementary
#2C0C3F #393F0C #0C3F13
monochromatic
#12051A #12051A #2C0C3F #501672 #7420A6

Accessibility & contrast

On white

17.05
#2C0C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0C3F
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C3F#FFFFFF#000000##FFFFFF
##2C0C3F1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#041C3E
Tritanopia (blue-blind)
#291724
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c0c3f;
/* rgb */ color: rgb(44, 12, 63);
/* oklch */ color: oklch(23.8% 0.094 309.7);
Tailwind
colors: {
  custom: {
    50: '#684e74',
    500: '#2c0c3f',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c3f;
$custom-light: #684e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c3f",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 277.647,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23793,
    "c": 0.09387,
    "h": 309.7
  },
  "luminance": 0.01157
}

Semantic roles & 50–950 ramp

primary
#2C0C3F
secondary
#497B2C
accent
#EB3D7E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C0C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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