#301A7C#301A7C

#301A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.153 H 284.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#301A7C
RGBrgb(48, 26, 124)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 49%)
CMYKcmyk(61.3%, 79%, 0%, 51.4%)
CIE-LABlab(19.32, 37.89, -51.52)
CIE-LCHlch(19.32, 63.96, 306.33°)
OKLaboklab(32.14% 0.0371 -0.1485)
OKLCHoklch(32.14% 0.153 284)
XYZxyz(5.2253, 2.8221, 19.3342)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A7C #667C1A
analogous
#1A357C #301A7C #611A7C
triadic
#301A7C #7C301A #1A7C30
tetradic
#301A7C #7C1A35 #667C1A #1A7C61
square
#301A7C #7C1A35 #667C1A #1A7C61
split-complementary
#301A7C #7C611A #357C1A
monochromatic
#0A0519 #1C0F49 #301A7C #4425AF #5D3BD6

Accessibility & contrast

On white

13.42
#301A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#301A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A7C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A7C#FFFFFF#000000##FFFFFF
##301A7C1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#01364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301a7c;
/* rgb */ color: rgb(48, 26, 124);
/* oklch */ color: oklch(32.1% 0.153 284.0);
Tailwind
colors: {
  custom: {
    50: '#735aa3',
    500: '#301a7c',
    950: '#000000',
  },
}
SCSS
$custom: #301a7c;
$custom-light: #735aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#301a7c",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 253.469,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32135,
    "c": 0.15303,
    "h": 284
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#301A7C
secondary
#97B042
accent
#E840C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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