#301A85#301A85

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

Color values

HEX#301A85
RGBrgb(48, 26, 133)
HSLhsl(252, 67%, 31%)
HSVhsv(252, 80%, 52%)
CMYKcmyk(63.9%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.28, 40.69, -55.63)
CIE-LCHlch(20.28, 68.92, 306.18°)
OKLaboklab(33.1% 0.0344 -0.1605)
OKLCHoklch(33.1% 0.164 282.1)
XYZxyz(5.8206, 3.0602, 22.4697)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A85 #6F851A
analogous
#1A3985 #301A85 #651A85
triadic
#301A85 #85301A #1A8530
tetradic
#301A85 #851A39 #6F851A #1A8565
square
#301A85 #851A39 #6F851A #1A8565
split-complementary
#301A85 #85651A #39851A
monochromatic
#0B061F #1E1052 #301A85 #4224B8 #5F40DA

Accessibility & contrast

On white

13.03
#301A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A85
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A85#FFFFFF#000000##FFFFFF
##301A851.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #301a85;
/* rgb */ color: rgb(48, 26, 133);
/* oklch */ color: oklch(33.1% 0.164 282.1);
Tailwind
colors: {
  custom: {
    50: '#745aaa',
    500: '#301a85',
    950: '#000000',
  },
}
SCSS
$custom: #301a85;
$custom-light: #745aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#301a85",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 252.336,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.331,
    "c": 0.16411,
    "h": 282.1
  },
  "luminance": 0.03061
}

Semantic roles & 50–950 ramp

primary
#301A85
secondary
#A0B842
accent
#EA3EC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301A85

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

Preview Lab → · Contrast checker → · Palette generator →

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