#2C205E#2C205E

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

Color values

HEX#2C205E
RGBrgb(44, 32, 94)
HSLhsl(252, 49%, 25%)
HSVhsv(252, 66%, 37%)
CMYKcmyk(53.2%, 66%, 0%, 63.1%)
CIE-LABlab(17.35, 23.77, -35.24)
CIE-LCHlch(17.35, 42.51, 304.00°)
OKLaboklab(29.75% 0.0309 -0.1009)
OKLCHoklch(29.75% 0.106 287)
XYZxyz(3.5750, 2.3765, 10.8578)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C205E #525E20
analogous
#20335E #2C205E #4B205E
triadic
#2C205E #5E2C20 #205E2C
tetradic
#2C205E #5E2033 #525E20 #205E4B
square
#2C205E #5E2033 #525E20 #205E4B
split-complementary
#2C205E #5E4B20 #335E20
monochromatic
#0B0817 #171030 #2C205E #41308C #573FB9

Accessibility & contrast

On white

14.23
#2C205E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C205E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C205E#FFFFFF#000000##FFFFFF
##2C205E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#1A2F3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c205e;
/* rgb */ color: rgb(44, 32, 94);
/* oklch */ color: oklch(29.8% 0.106 287.0);
Tailwind
colors: {
  custom: {
    50: '#6a5c8c',
    500: '#2c205e',
    950: '#000000',
  },
}
SCSS
$custom: #2c205e;
$custom-light: #6a5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c205e",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 94
  },
  "hsl": {
    "h": 251.613,
    "s": 49.206,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.10554,
    "h": 287
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#2C205E
secondary
#849247
accent
#D94FBE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C205E

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

Preview Lab → · Contrast checker → · Palette generator →

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