#3C238E#3C238E

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

Color values

HEX#3C238E
RGBrgb(60, 35, 142)
HSLhsl(254, 60%, 35%)
HSVhsv(254, 75%, 56%)
CMYKcmyk(57.7%, 75.4%, 0%, 44.3%)
CIE-LABlab(24.05, 40.35, -55.02)
CIE-LCHlch(24.05, 68.23, 306.26°)
OKLaboklab(36.31% 0.044 -0.1584)
OKLCHoklch(36.31% 0.164 285.5)
XYZxyz(7.3455, 4.1153, 25.9932)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C238E #758E23
analogous
#233F8E #3C238E #72238E
triadic
#3C238E #8E3C23 #238E3C
tetradic
#3C238E #8E233F #758E23 #238E72
square
#3C238E #8E233F #758E23 #238E72
split-complementary
#3C238E #8E7223 #3F8E23
monochromatic
#130B2C #27175D #3C238E #512FBF #7456D5

Accessibility & contrast

On white

11.52
#3C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C238E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C238E#FFFFFF#000000##FFFFFF
##3C238E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c238e;
/* rgb */ color: rgb(60, 35, 142);
/* oklch */ color: oklch(36.3% 0.164 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c61b0',
    500: '#3c238e',
    950: '#000000',
  },
}
SCSS
$custom: #3c238e;
$custom-light: #7c61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c238e",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 254.019,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3631,
    "c": 0.1644,
    "h": 285.5
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#3C238E
secondary
#A2B953
accent
#E444BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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