#301C8B#301C8B

#301C8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.170 H 280.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#301C8B
RGBrgb(48, 28, 139)
HSLhsl(251, 66%, 33%)
HSVhsv(251, 80%, 55%)
CMYKcmyk(65.5%, 79.9%, 0%, 45.5%)
CIE-LABlab(21.29, 41.53, -57.73)
CIE-LCHlch(21.29, 71.12, 305.73°)
OKLaboklab(34% 0.0314 -0.1666)
OKLCHoklch(34% 0.17 280.7)
XYZxyz(6.2929, 3.3225, 24.7308)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C8B #778B1C
analogous
#1C3F8B #301C8B #681C8B
triadic
#301C8B #8B301C #1C8B30
tetradic
#301C8B #8B1C3F #778B1C #1C8B68
square
#301C8B #8B1C3F #778B1C #1C8B68
split-complementary
#301C8B #8B681C #3F8B1C
monochromatic
#0D0725 #1E1258 #301C8B #4226BE #6247DA

Accessibility & contrast

On white

12.62
#301C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C8B
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C8B#FFFFFF#000000##FFFFFF
##301C8B1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301c8b;
/* rgb */ color: rgb(48, 28, 139);
/* oklch */ color: oklch(34.0% 0.170 280.7);
Tailwind
colors: {
  custom: {
    50: '#765cae',
    500: '#301c8b',
    950: '#000000',
  },
}
SCSS
$custom: #301c8b;
$custom-light: #765cae;
$custom-dark: #000000;
JSON
{
  "hex": "#301c8b",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 250.811,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33999,
    "c": 0.16955,
    "h": 280.7
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#301C8B
secondary
#A7BC47
accent
#E93ECB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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