#2C0C45#2C0C45

#2C0C45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.101 H 305.6°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#2C0C45
RGBrgb(44, 12, 69)
HSLhsl(274, 70%, 16%)
HSVhsv(274, 83%, 27%)
CMYKcmyk(36.2%, 82.6%, 0%, 72.9%)
CIE-LABlab(10.76, 28.08, -28.88)
CIE-LCHlch(10.76, 40.28, 314.19°)
OKLaboklab(24.33% 0.0588 -0.0821)
OKLCHoklch(24.33% 0.101 305.6)
XYZxyz(2.2441, 1.2281, 5.7479)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C45 #25450C
analogous
#0F0C45 #2C0C45 #450C41
triadic
#2C0C45 #452C0C #0C452C
tetradic
#2C0C45 #450F0C #25450C #0C4145
square
#2C0C45 #450F0C #25450C #0C4145
split-complementary
#2C0C45 #41450C #0C450F
monochromatic
#11051A #11051A #2C0C45 #4D1579 #6E1EAD

Accessibility & contrast

On white

16.86
#2C0C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2C0C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0C45
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C45#FFFFFF#000000##FFFFFF
##2C0C451.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#271A27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2c0c45;
/* rgb */ color: rgb(44, 12, 69);
/* oklch */ color: oklch(24.3% 0.101 305.6);
Tailwind
colors: {
  custom: {
    50: '#684e79',
    500: '#2c0c45',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c45;
$custom-light: #684e79;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c45",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 273.684,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2433,
    "c": 0.10103,
    "h": 305.6
  },
  "luminance": 0.01228
}

Semantic roles & 50–950 ramp

primary
#2C0C45
secondary
#51812C
accent
#ED3B89
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2C0C45

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

Preview Lab → · Contrast checker → · Palette generator →

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