#2C1562#2C1562

#2C1562 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.126 H 289.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2C1562
RGBrgb(44, 21, 98)
HSLhsl(258, 65%, 23%)
HSVhsv(258, 79%, 38%)
CMYKcmyk(55.1%, 78.6%, 0%, 61.6%)
CIE-LABlab(15.24, 31.86, -41.34)
CIE-LCHlch(15.24, 52.19, 307.62°)
OKLaboklab(28.35% 0.042 -0.1188)
OKLCHoklch(28.35% 0.126 289.5)
XYZxyz(3.5108, 1.9535, 11.7450)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1562 #4B6215
analogous
#152462 #2C1562 #521562
triadic
#2C1562 #622C15 #15622C
tetradic
#2C1562 #621524 #4B6215 #156252
square
#2C1562 #621524 #4B6215 #156252
split-complementary
#2C1562 #625215 #246215
monochromatic
#0B0519 #150A30 #2C1562 #432094 #592BC7

Accessibility & contrast

On white

15.10
#2C1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2C1562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1562
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1562#FFFFFF#000000##FFFFFF
##2C15621.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#182A3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2c1562;
/* rgb */ color: rgb(44, 21, 98);
/* oklch */ color: oklch(28.4% 0.126 289.5);
Tailwind
colors: {
  custom: {
    50: '#6c558f',
    500: '#2c1562',
    950: '#000000',
  },
}
SCSS
$custom: #2c1562;
$custom-light: #6c558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1562",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 257.922,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28352,
    "c": 0.12599,
    "h": 289.5
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#2C1562
secondary
#7D993A
accent
#E840B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2C1562

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

Preview Lab → · Contrast checker → · Palette generator →

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