#301A7B#301A7B

#301A7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.152 H 284.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#301A7B
RGBrgb(48, 26, 123)
HSLhsl(254, 65%, 29%)
HSVhsv(254, 79%, 48%)
CMYKcmyk(61%, 78.9%, 0%, 51.8%)
CIE-LABlab(19.21, 37.58, -51.06)
CIE-LCHlch(19.21, 63.40, 306.35°)
OKLaboklab(32.03% 0.0373 -0.1471)
OKLCHoklch(32.03% 0.152 284.2)
XYZxyz(5.1624, 2.7969, 19.0029)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A7B #657B1A
analogous
#1A357B #301A7B #611A7B
triadic
#301A7B #7B301A #1A7B30
tetradic
#301A7B #7B1A35 #657B1A #1A7B61
square
#301A7B #7B1A35 #657B1A #1A7B61
split-complementary
#301A7B #7B611A #357B1A
monochromatic
#0A0519 #1C0F48 #301A7B #4425AE #5D3AD5

Accessibility & contrast

On white

13.47
#301A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A7B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A7B#FFFFFF#000000##FFFFFF
##301A7B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#033649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #301a7b;
/* rgb */ color: rgb(48, 26, 123);
/* oklch */ color: oklch(32.0% 0.152 284.2);
Tailwind
colors: {
  custom: {
    50: '#725aa2',
    500: '#301a7b',
    950: '#000000',
  },
}
SCSS
$custom: #301a7b;
$custom-light: #725aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#301a7b",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 253.608,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.15179,
    "h": 284.2
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#301A7B
secondary
#96AF42
accent
#E840C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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