#2C225A#2C225A

#2C225A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.096 H 287.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2C225A
RGBrgb(44, 34, 90)
HSLhsl(251, 45%, 24%)
HSVhsv(251, 62%, 35%)
CMYKcmyk(51.1%, 62.2%, 0%, 64.7%)
CIE-LABlab(17.54, 21.06, -32.27)
CIE-LCHlch(17.54, 38.54, 303.14°)
OKLaboklab(29.79% 0.0286 -0.0922)
OKLCHoklch(29.79% 0.096 287.2)
XYZxyz(3.4557, 2.4176, 9.9554)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C225A #505A22
analogous
#22345A #2C225A #48225A
triadic
#2C225A #5A2C22 #225A2C
tetradic
#2C225A #5A2234 #505A22 #225A48
square
#2C225A #5A2234 #505A22 #225A48
split-complementary
#2C225A #5A4822 #345A22
monochromatic
#0B0816 #16112E #2C225A #423386 #5744B3

Accessibility & contrast

On white

14.15
#2C225A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2C225A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C225A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C225A#FFFFFF#000000##FFFFFF
##2C225A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#1D2F3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c225a;
/* rgb */ color: rgb(44, 34, 90);
/* oklch */ color: oklch(29.8% 0.096 287.2);
Tailwind
colors: {
  custom: {
    50: '#695d89',
    500: '#2c225a',
    950: '#000000',
  },
}
SCSS
$custom: #2c225a;
$custom-light: #695d89;
$custom-dark: #000000;
JSON
{
  "hex": "#2c225a",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 90
  },
  "hsl": {
    "h": 250.714,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29789,
    "c": 0.09649,
    "h": 287.2
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#2C225A
secondary
#828E4A
accent
#D553BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2C225A

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

Preview Lab → · Contrast checker → · Palette generator →

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