#3C228F#3C228F

#3C228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.167 H 285.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3C228F
RGBrgb(60, 34, 143)
HSLhsl(254, 62%, 35%)
HSVhsv(254, 76%, 56%)
CMYKcmyk(58%, 76.2%, 0%, 43.9%)
CIE-LABlab(23.96, 41.19, -55.79)
CIE-LCHlch(23.96, 69.35, 306.44°)
OKLaboklab(36.28% 0.0446 -0.1606)
OKLCHoklch(36.28% 0.167 285.5)
XYZxyz(7.3919, 4.0875, 26.3807)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C228F #758F22
analogous
#223F8F #3C228F #73228F
triadic
#3C228F #8F3C22 #228F3C
tetradic
#3C228F #8F223F #758F22 #228F73
square
#3C228F #8F223F #758F22 #228F73
split-complementary
#3C228F #8F7322 #3F8F22
monochromatic
#130A2C #27165E #3C228F #512EC0 #7455D7

Accessibility & contrast

On white

11.55
#3C228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3C228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C228F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C228F#FFFFFF#000000##FFFFFF
##3C228F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#134057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3c228f;
/* rgb */ color: rgb(60, 34, 143);
/* oklch */ color: oklch(36.3% 0.167 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c60b1',
    500: '#3c228f',
    950: '#000000',
  },
}
SCSS
$custom: #3c228f;
$custom-light: #7c60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c228f",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 254.312,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36276,
    "c": 0.1667,
    "h": 285.5
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#3C228F
secondary
#A2BA52
accent
#E543BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3C228F

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

Preview Lab → · Contrast checker → · Palette generator →

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