#2C1180#2C1180

#2C1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.166 H 282.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2C1180
RGBrgb(44, 17, 128)
HSLhsl(255, 77%, 28%)
HSVhsv(255, 87%, 50%)
CMYKcmyk(65.6%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.89, 42.91, -56.43)
CIE-LCHlch(17.89, 70.90, 307.25°)
OKLaboklab(31.18% 0.0346 -0.1628)
OKLCHoklch(31.18% 0.166 282)
XYZxyz(5.1342, 2.4945, 20.6288)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1180 #658011
analogous
#112D80 #2C1180 #631180
triadic
#2C1180 #802C11 #11802C
tetradic
#2C1180 #80112D #658011 #118063
square
#2C1180 #80112D #658011 #118063
split-complementary
#2C1180 #806311 #2D8011
monochromatic
#09041B #190A4A #2C1180 #3F18B6 #5629E3

Accessibility & contrast

On white

14.01
#2C1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2C1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1180
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1180#FFFFFF#000000##FFFFFF
##2C11801.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1180;
/* rgb */ color: rgb(44, 17, 128);
/* oklch */ color: oklch(31.2% 0.166 282.0);
Tailwind
colors: {
  custom: {
    50: '#7255a6',
    500: '#2c1180',
    950: '#000000',
  },
}
SCSS
$custom: #2c1180;
$custom-light: #7255a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1180",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 254.595,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.16642,
    "h": 282
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#2C1180
secondary
#97B637
accent
#F335C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2C1180

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

Preview Lab → · Contrast checker → · Palette generator →

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