#301A66#301A66

#301A66 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.125 H 290.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#301A66
RGBrgb(48, 26, 102)
HSLhsl(257, 59%, 25%)
HSVhsv(257, 75%, 40%)
CMYKcmyk(52.9%, 74.5%, 0%, 60%)
CIE-LABlab(17.11, 30.98, -40.90)
CIE-LCHlch(17.11, 51.31, 307.14°)
OKLaboklab(29.91% 0.0427 -0.1174)
OKLCHoklch(29.91% 0.125 290)
XYZxyz(3.9859, 2.3263, 12.8068)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A66 #50661A
analogous
#1A2A66 #301A66 #561A66
triadic
#301A66 #66301A #1A6630
tetradic
#301A66 #661A2A #50661A #1A6656
square
#301A66 #661A2A #50661A #1A6656
split-complementary
#301A66 #66561A #2A661A
monochromatic
#0B0618 #190E35 #301A66 #472697 #5E33C8

Accessibility & contrast

On white

14.33
#301A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A66
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A66#FFFFFF#000000##FFFFFF
##301A661.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1D2E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301a66;
/* rgb */ color: rgb(48, 26, 102);
/* oklch */ color: oklch(29.9% 0.125 290.0);
Tailwind
colors: {
  custom: {
    50: '#6e5892',
    500: '#301a66',
    950: '#000000',
  },
}
SCSS
$custom: #301a66;
$custom-light: #6e5892;
$custom-dark: #000000;
JSON
{
  "hex": "#301a66",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 257.368,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29909,
    "c": 0.12489,
    "h": 290
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#301A66
secondary
#819C40
accent
#E345B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301A66

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

Preview Lab → · Contrast checker → · Palette generator →

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