#301B77#301B77

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

Color values

HEX#301B77
RGBrgb(48, 27, 119)
HSLhsl(254, 63%, 29%)
HSVhsv(254, 77%, 47%)
CMYKcmyk(59.7%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.99, 35.78, -48.87)
CIE-LCHlch(18.99, 60.57, 306.21°)
OKLaboklab(31.75% 0.0377 -0.1407)
OKLCHoklch(31.75% 0.146 285)
XYZxyz(4.9396, 2.7439, 17.7185)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B77 #62771B
analogous
#1B3477 #301B77 #5E1B77
triadic
#301B77 #77301B #1B7730
tetradic
#301B77 #771B34 #62771B #1B775E
square
#301B77 #771B34 #62771B #1B775E
split-complementary
#301B77 #775E1B #34771B
monochromatic
#0A0619 #1C1045 #301B77 #4426A9 #5D3AD2

Accessibility & contrast

On white

13.56
#301B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B77
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B77#FFFFFF#000000##FFFFFF
##301B771.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#0B3547
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301b77;
/* rgb */ color: rgb(48, 27, 119);
/* oklch */ color: oklch(31.7% 0.146 285.0);
Tailwind
colors: {
  custom: {
    50: '#725a9f',
    500: '#301b77',
    950: '#000000',
  },
}
SCSS
$custom: #301b77;
$custom-light: #725a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#301b77",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 253.696,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31747,
    "c": 0.14569,
    "h": 285
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#301B77
secondary
#93AB42
accent
#E642C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #301B77

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

Preview Lab → · Contrast checker → · Palette generator →

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