#301B73#301B73

#301B73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.141 H 286.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#301B73
RGBrgb(48, 27, 115)
HSLhsl(254, 62%, 28%)
HSVhsv(254, 77%, 45%)
CMYKcmyk(58.3%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.58, 34.52, -46.96)
CIE-LCHlch(18.58, 58.28, 306.32°)
OKLaboklab(31.34% 0.0387 -0.1351)
OKLCHoklch(31.34% 0.141 286)
XYZxyz(4.7044, 2.6498, 16.4799)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B73 #5E731B
analogous
#1B3273 #301B73 #5C1B73
triadic
#301B73 #73301B #1B7330
tetradic
#301B73 #731B32 #5E731B #1B735C
square
#301B73 #731B32 #5E731B #1B735C
split-complementary
#301B73 #735C1B #32731B
monochromatic
#0A0619 #1B0F41 #301B73 #4527A5 #5C38D0

Accessibility & contrast

On white

13.73
#301B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B73
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B73#FFFFFF#000000##FFFFFF
##301B731.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#113345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301b73;
/* rgb */ color: rgb(48, 27, 115);
/* oklch */ color: oklch(31.3% 0.141 286.0);
Tailwind
colors: {
  custom: {
    50: '#715a9c',
    500: '#301b73',
    950: '#000000',
  },
}
SCSS
$custom: #301b73;
$custom-light: #715a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#301b73",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 254.318,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31339,
    "c": 0.14057,
    "h": 286
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#301B73
secondary
#8FA842
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B73

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

Preview Lab → · Contrast checker → · Palette generator →

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