#2C1070#2C1070

#2C1070 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.148 H 286.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2C1070
RGBrgb(44, 16, 112)
HSLhsl(258, 75%, 25%)
HSVhsv(258, 86%, 44%)
CMYKcmyk(60.7%, 85.7%, 0%, 56.1%)
CIE-LABlab(15.88, 38.62, -49.48)
CIE-LCHlch(15.88, 62.77, 307.97°)
OKLaboklab(29.25% 0.0412 -0.1425)
OKLCHoklch(29.25% 0.148 286.1)
XYZxyz(4.1477, 2.0757, 15.5082)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1070 #547010
analogous
#102470 #2C1070 #5C1070
triadic
#2C1070 #702C10 #10702C
tetradic
#2C1070 #701024 #547010 #10705C
square
#2C1070 #701024 #547010 #10705C
split-complementary
#2C1070 #705C10 #247010
monochromatic
#0B041B #17083A #2C1070 #4118A6 #561FDB

Accessibility & contrast

On white

14.84
#2C1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1070
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1070#FFFFFF#000000##FFFFFF
##2C10701.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#072D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1070;
/* rgb */ color: rgb(44, 16, 112);
/* oklch */ color: oklch(29.3% 0.148 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f539a',
    500: '#2c1070',
    950: '#000000',
  },
}
SCSS
$custom: #2c1070;
$custom-light: #6f539a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1070",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 257.5,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2925,
    "c": 0.14836,
    "h": 286.1
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#2C1070
secondary
#86A834
accent
#F236BB
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1070

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

Preview Lab → · Contrast checker → · Palette generator →

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