#301A8F#301A8F

#301A8F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.176 H 280.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#301A8F
RGBrgb(48, 26, 143)
HSLhsl(251, 69%, 33%)
HSVhsv(251, 82%, 56%)
CMYKcmyk(66.4%, 81.8%, 0%, 43.9%)
CIE-LABlab(21.39, 43.76, -60.06)
CIE-LCHlch(21.39, 74.31, 306.08°)
OKLaboklab(34.2% 0.0313 -0.1734)
OKLCHoklch(34.2% 0.176 280.2)
XYZxyz(6.5447, 3.3498, 26.2830)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A8F #798F1A
analogous
#1A3E8F #301A8F #6A1A8F
triadic
#301A8F #8F301A #1A8F30
tetradic
#301A8F #8F1A3E #798F1A #1A8F6A
square
#301A8F #8F1A3E #798F1A #1A8F6A
split-complementary
#301A8F #8F6A1A #3E8F1A
monochromatic
#0D0727 #1F115B #301A8F #4123C3 #6246DD

Accessibility & contrast

On white

12.57
#301A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A8F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A8F#FFFFFF#000000##FFFFFF
##301A8F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301a8f;
/* rgb */ color: rgb(48, 26, 143);
/* oklch */ color: oklch(34.2% 0.176 280.2);
Tailwind
colors: {
  custom: {
    50: '#775bb1',
    500: '#301a8f',
    950: '#000000',
  },
}
SCSS
$custom: #301a8f;
$custom-light: #775bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#301a8f",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 251.282,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.17617,
    "h": 280.2
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#301A8F
secondary
#A8BF46
accent
#EC3CCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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