#301C90#301C90

#301C90 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.176 H 279.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#301C90
RGBrgb(48, 28, 144)
HSLhsl(250, 67%, 34%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(66.7%, 80.6%, 0%, 43.5%)
CIE-LABlab(21.84, 43.09, -59.94)
CIE-LCHlch(21.84, 73.81, 305.71°)
OKLaboklab(34.55% 0.0299 -0.173)
OKLCHoklch(34.55% 0.176 279.8)
XYZxyz(6.6666, 3.4720, 26.6990)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C90 #7C901C
analogous
#1C4290 #301C90 #6A1C90
triadic
#301C90 #90301C #1C9030
tetradic
#301C90 #901C42 #7C901C #1C906A
square
#301C90 #901C42 #7C901C #1C906A
split-complementary
#301C90 #906A1C #42901C
monochromatic
#0E082A #1F125D #301C90 #4126C3 #644ADC

Accessibility & contrast

On white

12.39
#301C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C90
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C90#FFFFFF#000000##FFFFFF
##301C901.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301c90;
/* rgb */ color: rgb(48, 28, 144);
/* oklch */ color: oklch(34.5% 0.176 279.8);
Tailwind
colors: {
  custom: {
    50: '#775cb2',
    500: '#301c90',
    950: '#000000',
  },
}
SCSS
$custom: #301c90;
$custom-light: #775cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#301c90",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 250.345,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34546,
    "c": 0.17561,
    "h": 279.8
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#301C90
secondary
#AABE4A
accent
#EA3DCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C90

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

Preview Lab → · Contrast checker → · Palette generator →

#301C90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva