#3C238F#3C238F

#3C238F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.166 H 285.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3C238F
RGBrgb(60, 35, 143)
HSLhsl(254, 61%, 35%)
HSVhsv(254, 76%, 56%)
CMYKcmyk(58%, 75.5%, 0%, 43.9%)
CIE-LABlab(24.15, 40.66, -55.48)
CIE-LCHlch(24.15, 68.78, 306.23°)
OKLaboklab(36.41% 0.0438 -0.1597)
OKLCHoklch(36.41% 0.166 285.3)
XYZxyz(7.4209, 4.1455, 26.3904)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C238F #768F23
analogous
#23408F #3C238F #72238F
triadic
#3C238F #8F3C23 #238F3C
tetradic
#3C238F #8F2340 #768F23 #238F72
square
#3C238F #8F2340 #768F23 #238F72
split-complementary
#3C238F #8F7223 #408F23
monochromatic
#130B2D #27175E #3C238F #512FC0 #7457D6

Accessibility & contrast

On white

11.48
#3C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C238F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C238F#FFFFFF#000000##FFFFFF
##3C238F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c238f;
/* rgb */ color: rgb(60, 35, 143);
/* oklch */ color: oklch(36.4% 0.166 285.3);
Tailwind
colors: {
  custom: {
    50: '#7c61b1',
    500: '#3c238f',
    950: '#000000',
  },
}
SCSS
$custom: #3c238f;
$custom-light: #7c61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c238f",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 253.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.16562,
    "h": 285.3
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#3C238F
secondary
#A2BA54
accent
#E444BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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