#2C1062#2C1062

#2C1062 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.132 H 290.6°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2C1062
RGBrgb(44, 16, 98)
HSLhsl(260, 72%, 22%)
HSVhsv(260, 84%, 38%)
CMYKcmyk(55.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.33, 34.46, -42.83)
CIE-LCHlch(14.33, 54.97, 308.81°)
OKLaboklab(27.72% 0.0463 -0.1231)
OKLCHoklch(27.72% 0.132 290.6)
XYZxyz(3.4280, 1.7878, 11.7174)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1062 #466210
analogous
#101D62 #2C1062 #551062
triadic
#2C1062 #622C10 #10622C
tetradic
#2C1062 #62101D #466210 #106255
square
#2C1062 #62101D #466210 #106255
split-complementary
#2C1062 #625510 #1D6210
monochromatic
#0C041A #14072D #2C1062 #441997 #5B21CB

Accessibility & contrast

On white

15.47
#2C1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1062
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1062#FFFFFF#000000##FFFFFF
##2C10621.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#182839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c1062;
/* rgb */ color: rgb(44, 16, 98);
/* oklch */ color: oklch(27.7% 0.132 290.6);
Tailwind
colors: {
  custom: {
    50: '#6c5290',
    500: '#2c1062',
    950: '#000000',
  },
}
SCSS
$custom: #2c1062;
$custom-light: #6c5290;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1062",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 260.488,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27715,
    "c": 0.13152,
    "h": 290.6
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2C1062
secondary
#779B33
accent
#EF39B1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C1062

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

Preview Lab → · Contrast checker → · Palette generator →

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