#301788#301788

#301788 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.170 H 281.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#301788
RGBrgb(48, 23, 136)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 53%)
CMYKcmyk(64.7%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.12, 43.05, -57.79)
CIE-LCHlch(20.12, 72.07, 306.68°)
OKLaboklab(33.08% 0.0352 -0.1667)
OKLCHoklch(33.08% 0.17 281.9)
XYZxyz(5.9679, 3.0183, 23.5559)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301788 #6F8817
analogous
#173688 #301788 #681788
triadic
#301788 #883017 #178830
tetradic
#301788 #881736 #6F8817 #178868
square
#301788 #881736 #6F8817 #178868
split-complementary
#301788 #886817 #368817
monochromatic
#0B051F #1E0E54 #301788 #4220BC #5F3BDE

Accessibility & contrast

On white

13.09
#301788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#301788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301788
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301788#FFFFFF#000000##FFFFFF
##3017881.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301788;
/* rgb */ color: rgb(48, 23, 136);
/* oklch */ color: oklch(33.1% 0.170 281.9);
Tailwind
colors: {
  custom: {
    50: '#7559ac',
    500: '#301788',
    950: '#000000',
  },
}
SCSS
$custom: #301788;
$custom-light: #7559ac;
$custom-dark: #000000;
JSON
{
  "hex": "#301788",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 253.274,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33084,
    "c": 0.1704,
    "h": 281.9
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#301788
secondary
#A0BC3F
accent
#EE3AC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301788

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

Preview Lab → · Contrast checker → · Palette generator →

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