#301A76#301A76

#301A76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.146 H 285.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#301A76
RGBrgb(48, 26, 118)
HSLhsl(254, 64%, 28%)
HSVhsv(254, 78%, 46%)
CMYKcmyk(59.3%, 78%, 0%, 53.7%)
CIE-LABlab(18.69, 36.01, -48.71)
CIE-LCHlch(18.69, 60.58, 306.48°)
OKLaboklab(31.51% 0.0387 -0.1403)
OKLCHoklch(31.51% 0.146 285.4)
XYZxyz(4.8573, 2.6749, 17.3964)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A76 #60761A
analogous
#1A3276 #301A76 #5E1A76
triadic
#301A76 #76301A #1A7630
tetradic
#301A76 #761A32 #60761A #1A765E
square
#301A76 #761A32 #60761A #1A765E
split-complementary
#301A76 #765E1A #32761A
monochromatic
#0A0619 #1C0F44 #301A76 #4425A8 #5D37D3

Accessibility & contrast

On white

13.68
#301A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A76
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A76#FFFFFF#000000##FFFFFF
##301A761.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#0D3447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301a76;
/* rgb */ color: rgb(48, 26, 118);
/* oklch */ color: oklch(31.5% 0.146 285.4);
Tailwind
colors: {
  custom: {
    50: '#71599e',
    500: '#301a76',
    950: '#000000',
  },
}
SCSS
$custom: #301a76;
$custom-light: #71599e;
$custom-dark: #000000;
JSON
{
  "hex": "#301a76",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 254.348,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31508,
    "c": 0.14552,
    "h": 285.4
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#301A76
secondary
#91AB41
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301A76

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

Preview Lab → · Contrast checker → · Palette generator →

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