#2C0945#2C0945

#2C0945 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.105 H 306.3°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#2C0945
RGBrgb(44, 9, 69)
HSLhsl(275, 77%, 15%)
HSVhsv(275, 87%, 27%)
CMYKcmyk(36.2%, 87%, 0%, 72.9%)
CIE-LABlab(10.26, 29.52, -29.70)
CIE-LCHlch(10.26, 41.87, 314.82°)
OKLaboklab(23.98% 0.062 -0.0845)
OKLCHoklch(23.98% 0.105 306.3)
XYZxyz(2.2103, 1.1605, 5.7366)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0945 #224509
analogous
#0E0945 #2C0945 #450940
triadic
#2C0945 #452C09 #09452C
tetradic
#2C0945 #450E09 #224509 #094045
square
#2C0945 #450E09 #224509 #094045
split-complementary
#2C0945 #404509 #09450E
monochromatic
#11041B #11041B #2C0945 #4F107B #7117B1

Accessibility & contrast

On white

17.04
#2C0945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0945
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0945#FFFFFF#000000##FFFFFF
##2C09451.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#281827
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2c0945;
/* rgb */ color: rgb(44, 9, 69);
/* oklch */ color: oklch(24.0% 0.105 306.3);
Tailwind
colors: {
  custom: {
    50: '#684d79',
    500: '#2c0945',
    950: '#000000',
  },
}
SCSS
$custom: #2c0945;
$custom-light: #684d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0945",
  "rgb": {
    "r": 44,
    "g": 9,
    "b": 69
  },
  "hsl": {
    "h": 275,
    "s": 76.923,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23978,
    "c": 0.10483,
    "h": 306.3
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#2C0945
secondary
#4D8327
accent
#F33484
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2C0945

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

Preview Lab → · Contrast checker → · Palette generator →

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