#301B8D#301B8D

#301B8D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.173 H 280.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#301B8D
RGBrgb(48, 27, 141)
HSLhsl(251, 68%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(66%, 80.9%, 0%, 44.7%)
CIE-LABlab(21.34, 42.66, -58.90)
CIE-LCHlch(21.34, 72.73, 305.91°)
OKLaboklab(34.1% 0.0314 -0.17)
OKLCHoklch(34.1% 0.173 280.5)
XYZxyz(6.4171, 3.3348, 25.4997)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B8D #788D1B
analogous
#1B3F8D #301B8D #691B8D
triadic
#301B8D #8D301B #1B8D30
tetradic
#301B8D #8D1B3F #788D1B #1B8D69
square
#301B8D #8D1B3F #788D1B #1B8D69
split-complementary
#301B8D #8D691B #3F8D1B
monochromatic
#0D0726 #1F115A #301B8D #4125C0 #6247DC

Accessibility & contrast

On white

12.60
#301B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#301B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B8D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B8D#FFFFFF#000000##FFFFFF
##301B8D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301b8d;
/* rgb */ color: rgb(48, 27, 141);
/* oklch */ color: oklch(34.1% 0.173 280.5);
Tailwind
colors: {
  custom: {
    50: '#765bb0',
    500: '#301b8d',
    950: '#000000',
  },
}
SCSS
$custom: #301b8d;
$custom-light: #765bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#301b8d",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 251.053,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34096,
    "c": 0.17289,
    "h": 280.5
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#301B8D
secondary
#A7BD46
accent
#EB3DCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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