#2C1252#2C1252

#2C1252 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.109 H 296.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1252
RGBrgb(44, 18, 82)
HSLhsl(264, 64%, 20%)
HSVhsv(264, 78%, 32%)
CMYKcmyk(46.3%, 78%, 0%, 67.8%)
CIE-LABlab(13.09, 28.62, -34.09)
CIE-LCHlch(13.09, 44.51, 310.01°)
OKLaboklab(26.35% 0.0491 -0.0975)
OKLCHoklch(26.35% 0.109 296.7)
XYZxyz(2.7776, 1.5772, 8.1391)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1252 #385212
analogous
#121852 #2C1252 #4C1252
triadic
#2C1252 #522C12 #12522C
tetradic
#2C1252 #521218 #385212 #12524C
square
#2C1252 #521218 #385212 #12524C
split-complementary
#2C1252 #524C12 #185212
monochromatic
#0D0619 #110720 #2C1252 #471D84 #6228B6

Accessibility & contrast

On white

15.96
#2C1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1252
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1252#FFFFFF#000000##FFFFFF
##2C12521.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#222230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1252;
/* rgb */ color: rgb(44, 18, 82);
/* oklch */ color: oklch(26.4% 0.109 296.7);
Tailwind
colors: {
  custom: {
    50: '#695283',
    500: '#2c1252',
    950: '#000000',
  },
}
SCSS
$custom: #2c1252;
$custom-light: #695283;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1252",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 264.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26351,
    "c": 0.10915,
    "h": 296.7
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#2C1252
secondary
#688B35
accent
#E741A3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1252

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

Preview Lab → · Contrast checker → · Palette generator →

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