#301A8C#301A8C

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

Color values

HEX#301A8C
RGBrgb(48, 26, 140)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 81%, 55%)
CMYKcmyk(65.7%, 81.4%, 0%, 45.1%)
CIE-LABlab(21.06, 42.84, -58.74)
CIE-LCHlch(21.06, 72.71, 306.10°)
OKLaboklab(33.87% 0.0322 -0.1695)
OKLCHoklch(33.87% 0.173 280.8)
XYZxyz(6.3204, 3.2601, 25.1021)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A8C #768C1A
analogous
#1A3D8C #301A8C #691A8C
triadic
#301A8C #8C301A #1A8C30
tetradic
#301A8C #8C1A3D #768C1A #1A8C69
square
#301A8C #8C1A3D #768C1A #1A8C69
split-complementary
#301A8C #8C691A #3D8C1A
monochromatic
#0D0725 #1E1058 #301A8C #4224C0 #6144DC

Accessibility & contrast

On white

12.71
#301A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#301A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A8C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A8C#FFFFFF#000000##FFFFFF
##301A8C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301a8c;
/* rgb */ color: rgb(48, 26, 140);
/* oklch */ color: oklch(33.9% 0.173 280.8);
Tailwind
colors: {
  custom: {
    50: '#765baf',
    500: '#301a8c',
    950: '#000000',
  },
}
SCSS
$custom: #301a8c;
$custom-light: #765baf;
$custom-dark: #000000;
JSON
{
  "hex": "#301a8c",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 251.579,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33868,
    "c": 0.17258,
    "h": 280.8
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#301A8C
secondary
#A6BE44
accent
#EC3CCA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #301A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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