#2C0C51#2C0C51

#2C0C51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.115 H 298.7°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2C0C51
RGBrgb(44, 12, 81)
HSLhsl(268, 74%, 18%)
HSVhsv(268, 85%, 32%)
CMYKcmyk(45.7%, 85.2%, 0%, 68.2%)
CIE-LABlab(11.91, 31.42, -35.34)
CIE-LCHlch(11.91, 47.29, 311.64°)
OKLaboklab(25.49% 0.0554 -0.1011)
OKLCHoklch(25.49% 0.115 298.7)
XYZxyz(2.6550, 1.3925, 7.9119)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0C51 #31510C
analogous
#0C0E51 #2C0C51 #4E0C51
triadic
#2C0C51 #512C0C #0C512C
tetradic
#2C0C51 #510C0E #31510C #0C514E
square
#2C0C51 #510C0E #31510C #0C514E
split-complementary
#2C0C51 #514E0C #0E510C
monochromatic
#0E041B #0F041C #2C0C51 #491486 #661CBC

Accessibility & contrast

On white

16.43
#2C0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0C51
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0C51#FFFFFF#000000##FFFFFF
##2C0C511.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#231F2E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0c51;
/* rgb */ color: rgb(44, 12, 81);
/* oklch */ color: oklch(25.5% 0.115 298.7);
Tailwind
colors: {
  custom: {
    50: '#6a4f83',
    500: '#2c0c51',
    950: '#000000',
  },
}
SCSS
$custom: #2c0c51;
$custom-light: #6a4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0c51",
  "rgb": {
    "r": 44,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 267.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25488,
    "c": 0.11532,
    "h": 298.7
  },
  "luminance": 0.01392
}

Semantic roles & 50–950 ramp

primary
#2C0C51
secondary
#608C2C
accent
#F1379B
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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