#2C1462#2C1462

#2C1462 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.127 H 289.7°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2C1462
RGBrgb(44, 20, 98)
HSLhsl(258, 66%, 23%)
HSVhsv(258, 80%, 38%)
CMYKcmyk(55.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.05, 32.40, -41.66)
CIE-LCHlch(15.05, 52.78, 307.88°)
OKLaboklab(28.22% 0.0429 -0.1197)
OKLCHoklch(28.22% 0.127 289.7)
XYZxyz(3.4928, 1.9175, 11.7390)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1462 #4A6214
analogous
#142362 #2C1462 #531462
triadic
#2C1462 #622C14 #14622C
tetradic
#2C1462 #621423 #4A6214 #146253
square
#2C1462 #621423 #4A6214 #146253
split-complementary
#2C1462 #625314 #236214
monochromatic
#0B0519 #150A2F #2C1462 #431E95 #5A29C8

Accessibility & contrast

On white

15.18
#2C1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1462
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1462#FFFFFF#000000##FFFFFF
##2C14621.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#18293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1462;
/* rgb */ color: rgb(44, 20, 98);
/* oklch */ color: oklch(28.2% 0.127 289.7);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2c1462',
    950: '#000000',
  },
}
SCSS
$custom: #2c1462;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1462",
  "rgb": {
    "r": 44,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 258.462,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28216,
    "c": 0.12716,
    "h": 289.7
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#2C1462
secondary
#7C9938
accent
#E93FB5
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1462

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

Preview Lab → · Contrast checker → · Palette generator →

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