#3C239D#3C239D

#3C239D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.183 H 282.7°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#3C239D
RGBrgb(60, 35, 157)
HSLhsl(252, 64%, 38%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(61.8%, 77.7%, 0%, 38.4%)
CIE-LABlab(25.55, 44.91, -61.78)
CIE-LCHlch(25.55, 76.38, 306.02°)
OKLaboklab(37.82% 0.0401 -0.1782)
OKLCHoklch(37.82% 0.183 282.7)
XYZxyz(8.5484, 4.5964, 32.3285)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C239D #849D23
analogous
#23479D #3C239D #79239D
triadic
#3C239D #9D3C23 #239D3C
tetradic
#3C239D #9D2347 #849D23 #239D79
square
#3C239D #9D2347 #849D23 #239D79
split-complementary
#3C239D #9D7923 #479D23
monochromatic
#160D39 #29186B #3C239D #4F2ECF #795FDB

Accessibility & contrast

On white

10.94
#3C239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3C239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C239D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C239D#FFFFFF#000000##FFFFFF
##3C239D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3c239d;
/* rgb */ color: rgb(60, 35, 157);
/* oklch */ color: oklch(37.8% 0.183 282.7);
Tailwind
colors: {
  custom: {
    50: '#7e62bb',
    500: '#3c239d',
    950: '#000000',
  },
}
SCSS
$custom: #3c239d;
$custom-light: #7e62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3c239d",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 252.295,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37821,
    "c": 0.18261,
    "h": 282.7
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#3C239D
secondary
#ACC05C
accent
#E741C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C239D

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

Preview Lab → · Contrast checker → · Palette generator →

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