#301C8C#301C8C

#301C8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.171 H 280.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#301C8C
RGBrgb(48, 28, 140)
HSLhsl(251, 67%, 33%)
HSVhsv(251, 80%, 55%)
CMYKcmyk(65.7%, 80%, 0%, 45.1%)
CIE-LABlab(21.40, 41.85, -58.17)
CIE-LCHlch(21.40, 71.66, 305.73°)
OKLaboklab(34.11% 0.0311 -0.1679)
OKLCHoklch(34.11% 0.171 280.5)
XYZxyz(6.3663, 3.3518, 25.1173)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C8C #788C1C
analogous
#1C408C #301C8C #681C8C
triadic
#301C8C #8C301C #1C8C30
tetradic
#301C8C #8C1C40 #788C1C #1C8C68
square
#301C8C #8C1C40 #788C1C #1C8C68
split-complementary
#301C8C #8C681C #408C1C
monochromatic
#0D0826 #1F1259 #301C8C #4126BF #6248DA

Accessibility & contrast

On white

12.57
#301C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#301C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C8C
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C8C#FFFFFF#000000##FFFFFF
##301C8C1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301c8c;
/* rgb */ color: rgb(48, 28, 140);
/* oklch */ color: oklch(34.1% 0.171 280.5);
Tailwind
colors: {
  custom: {
    50: '#765caf',
    500: '#301c8c',
    950: '#000000',
  },
}
SCSS
$custom: #301c8c;
$custom-light: #765caf;
$custom-dark: #000000;
JSON
{
  "hex": "#301c8c",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 250.714,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34108,
    "c": 0.17076,
    "h": 280.5
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#301C8C
secondary
#A7BC48
accent
#EA3ECB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301C8C

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

Preview Lab → · Contrast checker → · Palette generator →

#301C8C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva