#301A7E#301A7E

#301A7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.156 H 283.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#301A7E
RGBrgb(48, 26, 126)
HSLhsl(253, 66%, 30%)
HSVhsv(253, 79%, 49%)
CMYKcmyk(61.9%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.53, 38.52, -52.45)
CIE-LCHlch(19.53, 65.07, 306.29°)
OKLaboklab(32.35% 0.0365 -0.1512)
OKLCHoklch(32.35% 0.156 283.6)
XYZxyz(5.3531, 2.8732, 20.0071)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A7E #687E1A
analogous
#1A367E #301A7E #621A7E
triadic
#301A7E #7E301A #1A7E30
tetradic
#301A7E #7E1A36 #687E1A #1A7E62
square
#301A7E #7E1A36 #687E1A #1A7E62
split-complementary
#301A7E #7E621A #367E1A
monochromatic
#0A0519 #1D104B #301A7E #4324B1 #5E3CD7

Accessibility & contrast

On white

13.34
#301A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#301A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A7E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A7E#FFFFFF#000000##FFFFFF
##301A7E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301a7e;
/* rgb */ color: rgb(48, 26, 126);
/* oklch */ color: oklch(32.3% 0.156 283.6);
Tailwind
colors: {
  custom: {
    50: '#735aa4',
    500: '#301a7e',
    950: '#000000',
  },
}
SCSS
$custom: #301a7e;
$custom-light: #735aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#301a7e",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 253.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32347,
    "c": 0.15552,
    "h": 283.6
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#301A7E
secondary
#99B242
accent
#E93FC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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