#3C228E#3C228E

#3C228E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.165 H 285.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3C228E
RGBrgb(60, 34, 142)
HSLhsl(254, 61%, 35%)
HSVhsv(254, 76%, 56%)
CMYKcmyk(57.7%, 76.1%, 0%, 44.3%)
CIE-LABlab(23.86, 40.89, -55.33)
CIE-LCHlch(23.86, 68.80, 306.46°)
OKLaboklab(36.18% 0.0448 -0.1593)
OKLCHoklch(36.18% 0.165 285.7)
XYZxyz(7.3165, 4.0573, 25.9835)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C228E #748E22
analogous
#223E8E #3C228E #72228E
triadic
#3C228E #8E3C22 #228E3C
tetradic
#3C228E #8E223E #748E22 #228E72
square
#3C228E #8E223E #748E22 #228E72
split-complementary
#3C228E #8E7222 #3E8E22
monochromatic
#120A2B #27165D #3C228E #512EBF #7454D6

Accessibility & contrast

On white

11.59
#3C228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3C228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C228E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C228E#FFFFFF#000000##FFFFFF
##3C228E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#144056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3c228e;
/* rgb */ color: rgb(60, 34, 142);
/* oklch */ color: oklch(36.2% 0.165 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c60b0',
    500: '#3c228e',
    950: '#000000',
  },
}
SCSS
$custom: #3c228e;
$custom-light: #7c60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c228e",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 254.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36177,
    "c": 0.16548,
    "h": 285.7
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#3C228E
secondary
#A1BA52
accent
#E443BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3C228E

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

Preview Lab → · Contrast checker → · Palette generator →

#3C228E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva