#2C0843#2C0843

#2C0843 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.104 H 307.8°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#2C0843
RGBrgb(44, 8, 67)
HSLhsl(277, 79%, 15%)
HSVhsv(277, 88%, 26%)
CMYKcmyk(34.3%, 88.1%, 0%, 73.7%)
CIE-LABlab(9.91, 29.47, -28.86)
CIE-LCHlch(9.91, 41.25, 315.60°)
OKLaboklab(23.67% 0.0637 -0.082)
OKLCHoklch(23.67% 0.104 307.8)
XYZxyz(2.1384, 1.1144, 5.4116)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0843 #1F4308
analogous
#0E0843 #2C0843 #43083D
triadic
#2C0843 #432C08 #08432C
tetradic
#2C0843 #430E08 #1F4308 #083D43
square
#2C0843 #430E08 #1F4308 #083D43
split-complementary
#2C0843 #3D4308 #08430E
monochromatic
#12031B #12031B #2C0843 #500F7A #7415B0

Accessibility & contrast

On white

17.17
#2C0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2C0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0843
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0843#FFFFFF#000000##FFFFFF
##2C08431.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001C42
Tritanopia (blue-blind)
#281725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0843;
/* rgb */ color: rgb(44, 8, 67);
/* oklch */ color: oklch(23.7% 0.104 307.8);
Tailwind
colors: {
  custom: {
    50: '#684c78',
    500: '#2c0843',
    950: '#000000',
  },
}
SCSS
$custom: #2c0843;
$custom-light: #684c78;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0843",
  "rgb": {
    "r": 44,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 276.61,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23673,
    "c": 0.10385,
    "h": 307.8
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#2C0843
secondary
#498125
accent
#F5337E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2C0843

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

Preview Lab → · Contrast checker → · Palette generator →

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