#301989#301989

#301989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.170 H 281.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#301989
RGBrgb(48, 25, 137)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(65%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.55, 42.41, -57.70)
CIE-LCHlch(20.55, 71.61, 306.32°)
OKLaboklab(33.42% 0.0337 -0.1665)
OKLCHoklch(33.42% 0.17 281.5)
XYZxyz(6.0805, 3.1293, 23.9457)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301989 #728919
analogous
#193A89 #301989 #681989
triadic
#301989 #893019 #198930
tetradic
#301989 #89193A #728919 #198968
square
#301989 #89193A #728919 #198968
split-complementary
#301989 #896819 #3A8919
monochromatic
#0C0621 #1E1055 #301989 #4222BD #6040DC

Accessibility & contrast

On white

12.92
#301989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#301989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301989
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301989#FFFFFF#000000##FFFFFF
##3019891.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301989;
/* rgb */ color: rgb(48, 25, 137);
/* oklch */ color: oklch(33.4% 0.170 281.5);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#301989',
    950: '#000000',
  },
}
SCSS
$custom: #301989;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#301989",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 252.321,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3342,
    "c": 0.16986,
    "h": 281.5
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#301989
secondary
#A3BC41
accent
#EC3CC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301989

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

Preview Lab → · Contrast checker → · Palette generator →

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