#2C1064#2C1064

#2C1064 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.134 H 289.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2C1064
RGBrgb(44, 16, 100)
HSLhsl(260, 72%, 23%)
HSVhsv(260, 84%, 39%)
CMYKcmyk(56%, 84%, 0%, 60.8%)
CIE-LABlab(14.55, 35.05, -43.81)
CIE-LCHlch(14.55, 56.11, 308.67°)
OKLaboklab(27.93% 0.0456 -0.126)
OKLCHoklch(27.93% 0.134 289.9)
XYZxyz(3.5236, 1.8260, 12.2209)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1064 #486410
analogous
#101E64 #2C1064 #561064
triadic
#2C1064 #642C10 #10642C
tetradic
#2C1064 #64101E #486410 #106456
square
#2C1064 #64101E #486410 #106456
split-complementary
#2C1064 #645610 #1E6410
monochromatic
#0C041A #15082F #2C1064 #431899 #5A21CE

Accessibility & contrast

On white

15.38
#2C1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2C1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1064
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1064#FFFFFF#000000##FFFFFF
##2C10641.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#17283A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1064;
/* rgb */ color: rgb(44, 16, 100);
/* oklch */ color: oklch(27.9% 0.134 289.9);
Tailwind
colors: {
  custom: {
    50: '#6d5291',
    500: '#2c1064',
    950: '#000000',
  },
}
SCSS
$custom: #2c1064;
$custom-light: #6d5291;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1064",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 260,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27929,
    "c": 0.13395,
    "h": 289.9
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#2C1064
secondary
#799D33
accent
#EF39B2
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2C1064

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

Preview Lab → · Contrast checker → · Palette generator →

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