#2C2154#2C2154

#2C2154 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.089 H 289.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2C2154
RGBrgb(44, 33, 84)
HSLhsl(253, 44%, 23%)
HSVhsv(253, 61%, 33%)
CMYKcmyk(47.6%, 60.7%, 0%, 67.1%)
CIE-LABlab(16.81, 19.72, -29.42)
CIE-LCHlch(16.81, 35.42, 303.84°)
OKLaboklab(29.1% 0.0299 -0.0838)
OKLCHoklch(29.1% 0.089 289.6)
XYZxyz(3.1823, 2.2632, 8.6549)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2154 #495421
analogous
#212F54 #2C2154 #452154
triadic
#2C2154 #542C21 #21542C
tetradic
#2C2154 #54212F #495421 #215445
square
#2C2154 #54212F #495421 #215445
split-complementary
#2C2154 #544521 #2F5421
monochromatic
#0C0916 #151028 #2C2154 #433280 #5A44AC

Accessibility & contrast

On white

14.46
#2C2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2154
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2154#FFFFFF#000000##FFFFFF
##2C21541.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A56
Deuteranopia (green-blind)
#072853
Tritanopia (blue-blind)
#202C37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c2154;
/* rgb */ color: rgb(44, 33, 84);
/* oklch */ color: oklch(29.1% 0.089 289.6);
Tailwind
colors: {
  custom: {
    50: '#685c84',
    500: '#2c2154',
    950: '#000000',
  },
}
SCSS
$custom: #2c2154;
$custom-light: #685c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2154",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 252.941,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29103,
    "c": 0.08896,
    "h": 289.6
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#2C2154
secondary
#7B8849
accent
#D354B8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2C2154

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

Preview Lab → · Contrast checker → · Palette generator →

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