#2C1870#2C1870

#2C1870 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.141 H 284.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2C1870
RGBrgb(44, 24, 112)
HSLhsl(254, 65%, 27%)
HSVhsv(254, 79%, 44%)
CMYKcmyk(60.7%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.27, 34.63, -47.20)
CIE-LCHlch(17.27, 58.54, 306.26°)
OKLaboklab(30.21% 0.0356 -0.136)
OKLCHoklch(30.21% 0.141 284.7)
XYZxyz(4.2891, 2.3583, 15.5553)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1870 #5C7018
analogous
#183070 #2C1870 #581870
triadic
#2C1870 #702C18 #18702C
tetradic
#2C1870 #701830 #5C7018 #187058
square
#2C1870 #701830 #5C7018 #187058
split-complementary
#2C1870 #705818 #307018
monochromatic
#0A0519 #180D3E #2C1870 #4023A2 #5530D3

Accessibility & contrast

On white

14.27
#2C1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1870
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1870#FFFFFF#000000##FFFFFF
##2C18701.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#063143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c1870;
/* rgb */ color: rgb(44, 24, 112);
/* oklch */ color: oklch(30.2% 0.141 284.7);
Tailwind
colors: {
  custom: {
    50: '#6e579a',
    500: '#2c1870',
    950: '#000000',
  },
}
SCSS
$custom: #2c1870;
$custom-light: #6e579a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1870",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 253.636,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30215,
    "c": 0.14054,
    "h": 284.7
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#2C1870
secondary
#8EA53E
accent
#E840C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1870

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

Preview Lab → · Contrast checker → · Palette generator →

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