#301B93#301B93

#301B93 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.180 H 279.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#301B93
RGBrgb(48, 27, 147)
HSLhsl(251, 69%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(67.3%, 81.6%, 0%, 42.4%)
CIE-LABlab(22.01, 44.50, -61.52)
CIE-LCHlch(22.01, 75.92, 305.88°)
OKLaboklab(34.76% 0.0295 -0.1776)
OKLCHoklch(34.76% 0.18 279.4)
XYZxyz(6.8756, 3.5183, 27.9149)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B93 #7E931B
analogous
#1B4293 #301B93 #6C1B93
triadic
#301B93 #93301B #1B9330
tetradic
#301B93 #931B42 #7E931B #1B936C
square
#301B93 #931B42 #7E931B #1B936C
split-complementary
#301B93 #936C1B #42931B
monochromatic
#0E082C #1F125F #301B93 #4124C7 #644BDE

Accessibility & contrast

On white

12.33
#301B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B93
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B93#FFFFFF#000000##FFFFFF
##301B931.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301b93;
/* rgb */ color: rgb(48, 27, 147);
/* oklch */ color: oklch(34.8% 0.180 279.4);
Tailwind
colors: {
  custom: {
    50: '#775cb4',
    500: '#301b93',
    950: '#000000',
  },
}
SCSS
$custom: #301b93;
$custom-light: #775cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#301b93",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 250.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.18008,
    "h": 279.4
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#301B93
secondary
#ABC04A
accent
#EC3CCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301B93

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

Preview Lab → · Contrast checker → · Palette generator →

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