#2C1257#2C1257

#2C1257 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.116 H 294.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2C1257
RGBrgb(44, 18, 87)
HSLhsl(263, 66%, 21%)
HSVhsv(263, 79%, 34%)
CMYKcmyk(49.4%, 79.3%, 0%, 65.9%)
CIE-LABlab(13.57, 30.12, -36.71)
CIE-LCHlch(13.57, 47.49, 309.37°)
OKLaboklab(26.84% 0.0478 -0.1052)
OKLCHoklch(26.84% 0.116 294.5)
XYZxyz(2.9748, 1.6561, 9.1779)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1257 #3D5712
analogous
#121A57 #2C1257 #4E1257
triadic
#2C1257 #572C12 #12572C
tetradic
#2C1257 #57121A #3D5712 #12574E
square
#2C1257 #57121A #3D5712 #12574E
split-complementary
#2C1257 #574E12 #1A5712
monochromatic
#0D0519 #120824 #2C1257 #461C8A #5F27BC

Accessibility & contrast

On white

15.78
#2C1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1257
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1257#FFFFFF#000000##FFFFFF
##2C12571.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#202433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1257;
/* rgb */ color: rgb(44, 18, 87);
/* oklch */ color: oklch(26.8% 0.116 294.5);
Tailwind
colors: {
  custom: {
    50: '#6a5387',
    500: '#2c1257',
    950: '#000000',
  },
}
SCSS
$custom: #2c1257;
$custom-light: #6a5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1257",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 262.609,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26837,
    "c": 0.11555,
    "h": 294.5
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#2C1257
secondary
#6E9035
accent
#E93FA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1257

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

Preview Lab → · Contrast checker → · Palette generator →

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