#2C1A67#2C1A67

#2C1A67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.6% C 0.126 H 286.6°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2C1A67
RGBrgb(44, 26, 103)
HSLhsl(254, 60%, 25%)
HSVhsv(254, 75%, 40%)
CMYKcmyk(57.3%, 74.8%, 0%, 59.6%)
CIE-LABlab(16.76, 30.57, -42.15)
CIE-LCHlch(16.76, 52.07, 305.96°)
OKLaboklab(29.58% 0.0361 -0.1212)
OKLCHoklch(29.58% 0.126 286.6)
XYZxyz(3.8556, 2.2533, 13.0611)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A67 #55671A
analogous
#1A2E67 #2C1A67 #521A67
triadic
#2C1A67 #672C1A #1A672C
tetradic
#2C1A67 #671A2E #55671A #1A6752
square
#2C1A67 #671A2E #55671A #1A6752
split-complementary
#2C1A67 #67521A #2E671A
monochromatic
#0A0618 #170E36 #2C1A67 #412698 #5633C9

Accessibility & contrast

On white

14.47
#2C1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A67
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A67#FFFFFF#000000##FFFFFF
##2C1A671.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#132E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1a67;
/* rgb */ color: rgb(44, 26, 103);
/* oklch */ color: oklch(29.6% 0.126 286.6);
Tailwind
colors: {
  custom: {
    50: '#6c5893',
    500: '#2c1a67',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a67;
$custom-light: #6c5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a67",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 254.026,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29583,
    "c": 0.12643,
    "h": 286.6
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#2C1A67
secondary
#879D40
accent
#E345BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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