#301F77#301F77

#301F77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.141 H 284.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#301F77
RGBrgb(48, 31, 119)
HSLhsl(252, 59%, 29%)
HSVhsv(252, 74%, 47%)
CMYKcmyk(59.7%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.80, 33.50, -47.53)
CIE-LCHlch(19.80, 58.15, 305.18°)
OKLaboklab(32.32% 0.0343 -0.1368)
OKLCHoklch(32.32% 0.141 284.1)
XYZxyz(5.0377, 2.9399, 17.7512)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F77 #66771F
analogous
#1F3A77 #301F77 #5C1F77
triadic
#301F77 #77301F #1F7730
tetradic
#301F77 #771F3A #66771F #1F775C
square
#301F77 #771F3A #66771F #1F775C
split-complementary
#301F77 #775C1F #3A771F
monochromatic
#0A0618 #1C1246 #301F77 #442CA8 #5D43CE

Accessibility & contrast

On white

13.22
#301F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F77
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F77#FFFFFF#000000##FFFFFF
##301F771.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#0A3748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301f77;
/* rgb */ color: rgb(48, 31, 119);
/* oklch */ color: oklch(32.3% 0.141 284.1);
Tailwind
colors: {
  custom: {
    50: '#715c9f',
    500: '#301f77',
    950: '#000000',
  },
}
SCSS
$custom: #301f77;
$custom-light: #715c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#301f77",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 251.591,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.14108,
    "h": 284.1
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#301F77
secondary
#97AB47
accent
#E246C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #301F77

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

Preview Lab → · Contrast checker → · Palette generator →

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