#301B78#301B78

#301B78 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.147 H 284.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#301B78
RGBrgb(48, 27, 120)
HSLhsl(254, 63%, 29%)
HSVhsv(254, 78%, 47%)
CMYKcmyk(60%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.09, 36.10, -49.34)
CIE-LCHlch(19.09, 61.14, 306.19°)
OKLaboklab(31.85% 0.0374 -0.1421)
OKLCHoklch(31.85% 0.147 284.7)
XYZxyz(5.0000, 2.7680, 18.0365)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B78 #63781B
analogous
#1B3578 #301B78 #5F1B78
triadic
#301B78 #78301B #1B7830
tetradic
#301B78 #781B35 #63781B #1B785F
square
#301B78 #781B35 #63781B #1B785F
split-complementary
#301B78 #785F1B #35781B
monochromatic
#0A0619 #1C1046 #301B78 #4426AA #5D3BD3

Accessibility & contrast

On white

13.52
#301B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B78
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B78#FFFFFF#000000##FFFFFF
##301B781.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#093548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301b78;
/* rgb */ color: rgb(48, 27, 120);
/* oklch */ color: oklch(31.9% 0.147 284.7);
Tailwind
colors: {
  custom: {
    50: '#725aa0',
    500: '#301b78',
    950: '#000000',
  },
}
SCSS
$custom: #301b78;
$custom-light: #725aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#301b78",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 253.548,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.14695,
    "h": 284.7
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#301B78
secondary
#94AC43
accent
#E641C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #301B78

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

Preview Lab → · Contrast checker → · Palette generator →

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