#301977#301977

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

Color values

HEX#301977
RGBrgb(48, 25, 119)
HSLhsl(255, 65%, 28%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(59.7%, 79%, 0%, 53.3%)
CIE-LABlab(18.61, 36.86, -49.49)
CIE-LCHlch(18.61, 61.71, 306.68°)
OKLaboklab(31.48% 0.0392 -0.1425)
OKLCHoklch(31.48% 0.148 285.4)
XYZxyz(4.8953, 2.6553, 17.7037)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301977 #607719
analogous
#193177 #301977 #5F1977
triadic
#301977 #773019 #197730
tetradic
#301977 #771931 #607719 #19775F
square
#301977 #771931 #607719 #19775F
split-complementary
#301977 #775F19 #317719
monochromatic
#0A0519 #1C0E44 #301977 #4424AA #5D36D5

Accessibility & contrast

On white

13.71
#301977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301977
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301977#FFFFFF#000000##FFFFFF
##3019771.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#0B3447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301977;
/* rgb */ color: rgb(48, 25, 119);
/* oklch */ color: oklch(31.5% 0.148 285.4);
Tailwind
colors: {
  custom: {
    50: '#72599f',
    500: '#301977',
    950: '#000000',
  },
}
SCSS
$custom: #301977;
$custom-light: #72599f;
$custom-dark: #000000;
JSON
{
  "hex": "#301977",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 254.681,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.14784,
    "h": 285.4
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#301977
secondary
#91AC40
accent
#E840BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #301977

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

Preview Lab → · Contrast checker → · Palette generator →

#301977 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva