#2C0E54#2C0E54

#2C0E54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.117 H 296.8°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#2C0E54
RGBrgb(44, 14, 84)
HSLhsl(266, 71%, 19%)
HSVhsv(266, 83%, 33%)
CMYKcmyk(47.6%, 83.3%, 0%, 67.1%)
CIE-LABlab(12.54, 31.32, -36.35)
CIE-LCHlch(12.54, 47.98, 310.74°)
OKLaboklab(26.02% 0.0526 -0.1041)
OKLCHoklch(26.02% 0.117 296.8)
XYZxyz(2.7956, 1.4896, 8.5260)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0E54 #36540E
analogous
#0E1354 #2C0E54 #4F0E54
triadic
#2C0E54 #542C0E #0E542C
tetradic
#2C0E54 #540E13 #36540E #0E544F
square
#2C0E54 #540E13 #36540E #0E544F
split-complementary
#2C0E54 #544F0E #13540E
monochromatic
#0E041A #110520 #2C0E54 #471788 #631FBD

Accessibility & contrast

On white

16.18
#2C0E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C0E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0E54
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0E54#FFFFFF#000000##FFFFFF
##2C0E541.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#212130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c0e54;
/* rgb */ color: rgb(44, 14, 84);
/* oklch */ color: oklch(26.0% 0.117 296.8);
Tailwind
colors: {
  custom: {
    50: '#6a5085',
    500: '#2c0e54',
    950: '#000000',
  },
}
SCSS
$custom: #2c0e54;
$custom-light: #6a5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0e54",
  "rgb": {
    "r": 44,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 265.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26024,
    "c": 0.11665,
    "h": 296.8
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#2C0E54
secondary
#668E2F
accent
#EE3AA1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C0E54

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

Preview Lab → · Contrast checker → · Palette generator →

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