#3C229B#3C229B

#3C229B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.181 H 283.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3C229B
RGBrgb(60, 34, 155)
HSLhsl(253, 64%, 37%)
HSVhsv(253, 78%, 61%)
CMYKcmyk(61.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(25.17, 44.82, -61.19)
CIE-LCHlch(25.17, 75.85, 306.22°)
OKLaboklab(37.49% 0.0413 -0.1764)
OKLCHoklch(37.49% 0.181 283.2)
XYZxyz(8.3501, 4.4707, 31.4269)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C229B #819B22
analogous
#22449B #3C229B #79229B
triadic
#3C229B #9B3C22 #229B3C
tetradic
#3C229B #9B2244 #819B22 #229B79
square
#3C229B #9B2244 #819B22 #229B79
split-complementary
#3C229B #9B7922 #449B22
monochromatic
#150C37 #291769 #3C229B #4F2DCD #775CDB

Accessibility & contrast

On white

11.09
#3C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3C229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C229B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C229B#FFFFFF#000000##FFFFFF
##3C229B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3c229b;
/* rgb */ color: rgb(60, 34, 155);
/* oklch */ color: oklch(37.5% 0.181 283.2);
Tailwind
colors: {
  custom: {
    50: '#7e61ba',
    500: '#3c229b',
    950: '#000000',
  },
}
SCSS
$custom: #3c229b;
$custom-light: #7e61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3c229b",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 252.893,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37492,
    "c": 0.18119,
    "h": 283.2
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#3C229B
secondary
#AAC059
accent
#E741C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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