#301B83#301B83

#301B83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.161 H 282.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#301B83
RGBrgb(48, 27, 131)
HSLhsl(252, 66%, 31%)
HSVhsv(252, 79%, 51%)
CMYKcmyk(63.4%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.25, 39.55, -54.43)
CIE-LCHlch(20.25, 67.29, 306.00°)
OKLaboklab(33.01% 0.0343 -0.157)
OKLCHoklch(33.01% 0.161 282.3)
XYZxyz(5.7063, 3.0505, 21.7564)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B83 #6E831B
analogous
#1B3A83 #301B83 #641B83
triadic
#301B83 #83301B #1B8330
tetradic
#301B83 #831B3A #6E831B #1B8364
square
#301B83 #831B3A #6E831B #1B8364
split-complementary
#301B83 #83641B #3A831B
monochromatic
#0B061E #1D1150 #301B83 #4325B6 #5F41D8

Accessibility & contrast

On white

13.04
#301B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#301B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B83
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B83#FFFFFF#000000##FFFFFF
##301B831.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301b83;
/* rgb */ color: rgb(48, 27, 131);
/* oklch */ color: oklch(33.0% 0.161 282.3);
Tailwind
colors: {
  custom: {
    50: '#745ba8',
    500: '#301b83',
    950: '#000000',
  },
}
SCSS
$custom: #301b83;
$custom-light: #745ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#301b83",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 252.115,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33009,
    "c": 0.1607,
    "h": 282.3
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#301B83
secondary
#9FB643
accent
#E93FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301B83

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

Preview Lab → · Contrast checker → · Palette generator →

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