#301B8C#301B8C

#301B8C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.172 H 280.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#301B8C
RGBrgb(48, 27, 140)
HSLhsl(251, 68%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(65.7%, 80.7%, 0%, 45.1%)
CIE-LABlab(21.23, 42.35, -58.46)
CIE-LCHlch(21.23, 72.19, 305.92°)
OKLaboklab(33.99% 0.0317 -0.1687)
OKLCHoklch(33.99% 0.172 280.6)
XYZxyz(6.3430, 3.3052, 25.1096)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B8C #778C1B
analogous
#1B3F8C #301B8C #681B8C
triadic
#301B8C #8C301B #1B8C30
tetradic
#301B8C #8C1B3F #778C1B #1B8C68
square
#301B8C #8C1B3F #778C1B #1B8C68
split-complementary
#301B8C #8C681B #3F8C1B
monochromatic
#0D0725 #1E1159 #301B8C #4225BF #6246DB

Accessibility & contrast

On white

12.64
#301B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#301B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B8C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B8C#FFFFFF#000000##FFFFFF
##301B8C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301b8c;
/* rgb */ color: rgb(48, 27, 140);
/* oklch */ color: oklch(34.0% 0.172 280.6);
Tailwind
colors: {
  custom: {
    50: '#765baf',
    500: '#301b8c',
    950: '#000000',
  },
}
SCSS
$custom: #301b8c;
$custom-light: #765baf;
$custom-dark: #000000;
JSON
{
  "hex": "#301b8c",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 251.15,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33986,
    "c": 0.17168,
    "h": 280.6
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#301B8C
secondary
#A7BD46
accent
#EB3DCA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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