#2C1068#2C1068

#2C1068 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.139 H 288.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2C1068
RGBrgb(44, 16, 104)
HSLhsl(259, 73%, 24%)
HSVhsv(259, 85%, 41%)
CMYKcmyk(57.7%, 84.6%, 0%, 59.2%)
CIE-LABlab(14.98, 36.25, -45.73)
CIE-LCHlch(14.98, 58.35, 308.40°)
OKLaboklab(28.36% 0.0441 -0.1316)
OKLCHoklch(28.36% 0.139 288.5)
XYZxyz(3.7220, 1.9053, 13.2657)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1068 #4C6810
analogous
#102068 #2C1068 #581068
triadic
#2C1068 #682C10 #10682C
tetradic
#2C1068 #681020 #4C6810 #106858
square
#2C1068 #681020 #4C6810 #106858
split-complementary
#2C1068 #685810 #206810
monochromatic
#0B041B #160833 #2C1068 #42189D #5920D2

Accessibility & contrast

On white

15.20
#2C1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2C1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1068
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1068#FFFFFF#000000##FFFFFF
##2C10681.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#132A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1068;
/* rgb */ color: rgb(44, 16, 104);
/* oklch */ color: oklch(28.4% 0.139 288.5);
Tailwind
colors: {
  custom: {
    50: '#6d5394',
    500: '#2c1068',
    950: '#000000',
  },
}
SCSS
$custom: #2c1068;
$custom-light: #6d5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1068",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 259.091,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28363,
    "c": 0.13879,
    "h": 288.5
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#2C1068
secondary
#7EA034
accent
#F038B5
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2C1068

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

Preview Lab → · Contrast checker → · Palette generator →

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