#301C83#301C83

#301C83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.160 H 282.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#301C83
RGBrgb(48, 28, 131)
HSLhsl(252, 65%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(63.4%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.43, 39.03, -54.13)
CIE-LCHlch(20.43, 66.73, 305.79°)
OKLaboklab(33.14% 0.0337 -0.1561)
OKLCHoklch(33.14% 0.16 282.2)
XYZxyz(5.7296, 3.0972, 21.7642)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C83 #6F831C
analogous
#1C3B83 #301C83 #631C83
triadic
#301C83 #83301C #1C8330
tetradic
#301C83 #831C3B #6F831C #1C8363
square
#301C83 #831C3B #6F831C #1C8363
split-complementary
#301C83 #83631C #3B831C
monochromatic
#0B061E #1E1151 #301C83 #4227B5 #5F43D7

Accessibility & contrast

On white

12.97
#301C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#301C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C83
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C83#FFFFFF#000000##FFFFFF
##301C831.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301c83;
/* rgb */ color: rgb(48, 28, 131);
/* oklch */ color: oklch(33.1% 0.160 282.2);
Tailwind
colors: {
  custom: {
    50: '#745ba8',
    500: '#301c83',
    950: '#000000',
  },
}
SCSS
$custom: #301c83;
$custom-light: #745ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#301c83",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 251.65,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33138,
    "c": 0.15971,
    "h": 282.2
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#301C83
secondary
#A0B645
accent
#E840C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301C83

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

Preview Lab → · Contrast checker → · Palette generator →

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