#3C188F#3C188F

#3C188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.176 H 287.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3C188F
RGBrgb(60, 24, 143)
HSLhsl(258, 71%, 33%)
HSVhsv(258, 83%, 56%)
CMYKcmyk(58%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.29, 45.99, -58.54)
CIE-LCHlch(22.29, 74.44, 308.16°)
OKLaboklab(35.11% 0.0515 -0.1685)
OKLCHoklch(35.11% 0.176 287)
XYZxyz(7.1466, 3.5967, 26.2989)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C188F #6B8F18
analogous
#18308F #3C188F #77188F
triadic
#3C188F #8F3C18 #188F3C
tetradic
#3C188F #8F1830 #6B8F18 #188F77
square
#3C188F #8F1830 #6B8F18 #188F77
split-complementary
#3C188F #8F7718 #308F18
monochromatic
#100626 #260F5B #3C188F #5221C3 #7242DF

Accessibility & contrast

On white

12.21
#3C188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3C188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C188F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C188F#FFFFFF#000000##FFFFFF
##3C188F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#143C55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c188f;
/* rgb */ color: rgb(60, 24, 143);
/* oklch */ color: oklch(35.1% 0.176 287.0);
Tailwind
colors: {
  custom: {
    50: '#7d5bb1',
    500: '#3c188f',
    950: '#000000',
  },
}
SCSS
$custom: #3c188f;
$custom-light: #7d5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c188f",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 258.151,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.17625,
    "h": 287
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#3C188F
secondary
#9AC043
accent
#EE3AB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C188F

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

Preview Lab → · Contrast checker → · Palette generator →

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