#2C0842#2C0842

#2C0842 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.103 H 308.5°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#2C0842
RGBrgb(44, 8, 66)
HSLhsl(277, 78%, 15%)
HSVhsv(277, 88%, 26%)
CMYKcmyk(33.3%, 87.9%, 0%, 74.1%)
CIE-LABlab(9.82, 29.21, -28.30)
CIE-LCHlch(9.82, 40.67, 315.91°)
OKLaboklab(23.58% 0.064 -0.0804)
OKLCHoklch(23.58% 0.103 308.5)
XYZxyz(2.1087, 1.1025, 5.2549)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0842 #1E4208
analogous
#0F0842 #2C0842 #42083B
triadic
#2C0842 #422C08 #08422C
tetradic
#2C0842 #420F08 #1E4208 #083B42
square
#2C0842 #420F08 #1E4208 #083B42
split-complementary
#2C0842 #3B4208 #08420F
monochromatic
#12031B #12031B #2C0842 #500F79 #7515AF

Accessibility & contrast

On white

17.21
#2C0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C0842
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0842#FFFFFF#000000##FFFFFF
##2C08421.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#291725
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2c0842;
/* rgb */ color: rgb(44, 8, 66);
/* oklch */ color: oklch(23.6% 0.103 308.5);
Tailwind
colors: {
  custom: {
    50: '#684c77',
    500: '#2c0842',
    950: '#000000',
  },
}
SCSS
$custom: #2c0842;
$custom-light: #684c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0842",
  "rgb": {
    "r": 44,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 277.241,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23579,
    "c": 0.10274,
    "h": 308.5
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#2C0842
secondary
#488025
accent
#F5337C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2C0842

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

Preview Lab → · Contrast checker → · Palette generator →

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