#301890#301890

#301890 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.179 H 280.3°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#301890
RGBrgb(48, 24, 144)
HSLhsl(252, 71%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66.7%, 83.3%, 0%, 43.5%)
CIE-LABlab(21.19, 44.99, -61.02)
CIE-LCHlch(21.19, 75.81, 306.40°)
OKLaboklab(34.09% 0.032 -0.1761)
OKLCHoklch(34.09% 0.179 280.3)
XYZxyz(6.5780, 3.2947, 26.6695)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301890 #789018
analogous
#183C90 #301890 #6C1890
triadic
#301890 #903018 #189030
tetradic
#301890 #90183C #789018 #18906C
square
#301890 #90183C #789018 #18906C
split-complementary
#301890 #906C18 #3C9018
monochromatic
#0D0727 #1F0F5C #301890 #4121C4 #6243E0

Accessibility & contrast

On white

12.66
#301890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301890
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301890#FFFFFF#000000##FFFFFF
##3018901.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301890;
/* rgb */ color: rgb(48, 24, 144);
/* oklch */ color: oklch(34.1% 0.179 280.3);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#301890',
    950: '#000000',
  },
}
SCSS
$custom: #301890;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#301890",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34092,
    "c": 0.17902,
    "h": 280.3
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#301890
secondary
#A7C043
accent
#EE3ACA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301890

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

Preview Lab → · Contrast checker → · Palette generator →

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