#301A7A#301A7A

#301A7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.151 H 284.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#301A7A
RGBrgb(48, 26, 122)
HSLhsl(254, 65%, 29%)
HSVhsv(254, 79%, 48%)
CMYKcmyk(60.7%, 78.7%, 0%, 52.2%)
CIE-LABlab(19.11, 37.27, -50.59)
CIE-LCHlch(19.11, 62.84, 306.38°)
OKLaboklab(31.92% 0.0376 -0.1458)
OKLCHoklch(31.92% 0.151 284.5)
XYZxyz(5.1001, 2.7720, 18.6749)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A7A #647A1A
analogous
#1A347A #301A7A #601A7A
triadic
#301A7A #7A301A #1A7A30
tetradic
#301A7A #7A1A34 #647A1A #1A7A60
square
#301A7A #7A1A34 #647A1A #1A7A60
split-complementary
#301A7A #7A601A #347A1A
monochromatic
#0A0519 #1C0F48 #301A7A #4425AC #5D39D5

Accessibility & contrast

On white

13.51
#301A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A7A
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A7A#FFFFFF#000000##FFFFFF
##301A7A1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#053549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301a7a;
/* rgb */ color: rgb(48, 26, 122);
/* oklch */ color: oklch(31.9% 0.151 284.5);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#301a7a',
    950: '#000000',
  },
}
SCSS
$custom: #301a7a;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#301a7a",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 253.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31925,
    "c": 0.15054,
    "h": 284.5
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#301A7A
secondary
#95AE41
accent
#E840C1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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