#3C145E#3C145E

#3C145E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.124 H 304.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#3C145E
RGBrgb(60, 20, 94)
HSLhsl(272, 65%, 22%)
HSVhsv(272, 79%, 37%)
CMYKcmyk(36.2%, 78.7%, 0%, 63.1%)
CIE-LABlab(16.84, 34.28, -35.98)
CIE-LCHlch(16.84, 49.70, 313.61°)
OKLaboklab(29.85% 0.0701 -0.1024)
OKLCHoklch(29.85% 0.124 304.4)
XYZxyz(4.1336, 2.2691, 10.8077)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C145E #365E14
analogous
#17145E #3C145E #5E145B
triadic
#3C145E #5E3C14 #145E3C
tetradic
#3C145E #5E1714 #365E14 #145B5E
square
#3C145E #5E1714 #365E14 #145B5E
split-complementary
#3C145E #5B5E14 #145E17
monochromatic
#100519 #1C092C #3C145E #5C1F90 #7C29C3

Accessibility & contrast

On white

14.44
#3C145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3C145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C145E
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C145E#FFFFFF#000000##FFFFFF
##3C145E1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#352638
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c145e;
/* rgb */ color: rgb(60, 20, 94);
/* oklch */ color: oklch(29.8% 0.124 304.4);
Tailwind
colors: {
  custom: {
    50: '#76568c',
    500: '#3c145e',
    950: '#000000',
  },
}
SCSS
$custom: #3c145e;
$custom-light: #76568c;
$custom-dark: #000000;
JSON
{
  "hex": "#3c145e",
  "rgb": {
    "r": 60,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 272.432,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29847,
    "c": 0.12412,
    "h": 304.4
  },
  "luminance": 0.02269
}

Semantic roles & 50–950 ramp

primary
#3C145E
secondary
#639638
accent
#E8408D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C145E

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

Preview Lab → · Contrast checker → · Palette generator →

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