#301988#301988

#301988 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.169 H 281.6°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#301988
RGBrgb(48, 25, 136)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 53%)
CMYKcmyk(64.7%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.44, 42.10, -57.25)
CIE-LCHlch(20.44, 71.07, 306.33°)
OKLaboklab(33.31% 0.034 -0.1652)
OKLCHoklch(33.31% 0.169 281.6)
XYZxyz(6.0091, 3.1008, 23.5696)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301988 #718819
analogous
#193A88 #301988 #681988
triadic
#301988 #883019 #198830
tetradic
#301988 #88193A #718819 #198868
square
#301988 #88193A #718819 #198868
split-complementary
#301988 #886819 #3A8819
monochromatic
#0C0621 #1E0F54 #301988 #4223BC #6040DC

Accessibility & contrast

On white

12.96
#301988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301988
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301988#FFFFFF#000000##FFFFFF
##3019881.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301988;
/* rgb */ color: rgb(48, 25, 136);
/* oklch */ color: oklch(33.3% 0.169 281.6);
Tailwind
colors: {
  custom: {
    50: '#755aac',
    500: '#301988',
    950: '#000000',
  },
}
SCSS
$custom: #301988;
$custom-light: #755aac;
$custom-dark: #000000;
JSON
{
  "hex": "#301988",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 252.432,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3331,
    "c": 0.16866,
    "h": 281.6
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#301988
secondary
#A2BB41
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301988

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

Preview Lab → · Contrast checker → · Palette generator →

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