#301990#301990

#301990 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.178 H 280.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#301990
RGBrgb(48, 25, 144)
HSLhsl(252, 70%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66.7%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.34, 44.53, -60.76)
CIE-LCHlch(21.34, 75.33, 306.24°)
OKLaboklab(34.2% 0.0315 -0.1754)
OKLCHoklch(34.2% 0.178 280.2)
XYZxyz(6.5990, 3.3367, 26.6765)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301990 #799019
analogous
#193D90 #301990 #6B1990
triadic
#301990 #903019 #199030
tetradic
#301990 #90193D #799019 #19906B
square
#301990 #90193D #799019 #19906B
split-complementary
#301990 #906B19 #3D9019
monochromatic
#0D0728 #1F105C #301990 #4122C4 #6245DF

Accessibility & contrast

On white

12.59
#301990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#301990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301990
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301990#FFFFFF#000000##FFFFFF
##3019901.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301990;
/* rgb */ color: rgb(48, 25, 144);
/* oklch */ color: oklch(34.2% 0.178 280.2);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#301990',
    950: '#000000',
  },
}
SCSS
$custom: #301990;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#301990",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 251.597,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.1782,
    "h": 280.2
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#301990
secondary
#A8C045
accent
#ED3BCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301990

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

Preview Lab → · Contrast checker → · Palette generator →

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