#2C1470#2C1470

#2C1470 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.145 H 285.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2C1470
RGBrgb(44, 20, 112)
HSLhsl(256, 70%, 26%)
HSVhsv(256, 82%, 44%)
CMYKcmyk(60.7%, 82.1%, 0%, 56.1%)
CIE-LABlab(16.53, 36.73, -48.41)
CIE-LCHlch(16.53, 60.77, 307.19°)
OKLaboklab(29.7% 0.0385 -0.1395)
OKLCHoklch(29.7% 0.145 285.4)
XYZxyz(4.2126, 2.2054, 15.5298)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1470 #587014
analogous
#142A70 #2C1470 #5A1470
triadic
#2C1470 #702C14 #14702C
tetradic
#2C1470 #70142A #587014 #14705A
square
#2C1470 #70142A #587014 #14705A
split-complementary
#2C1470 #705A14 #2A7014
monochromatic
#0A051A #180B3C #2C1470 #401DA4 #5527D8

Accessibility & contrast

On white

14.57
#2C1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1470
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1470#FFFFFF#000000##FFFFFF
##2C14701.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#072F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1470;
/* rgb */ color: rgb(44, 20, 112);
/* oklch */ color: oklch(29.7% 0.145 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f559a',
    500: '#2c1470',
    950: '#000000',
  },
}
SCSS
$custom: #2c1470;
$custom-light: #6f559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1470",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 255.652,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29701,
    "c": 0.14469,
    "h": 285.4
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#2C1470
secondary
#8AA639
accent
#ED3BBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1470

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

Preview Lab → · Contrast checker → · Palette generator →

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