#301A4A#301A4A

#301A4A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.087 H 302.1°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#301A4A
RGBrgb(48, 26, 74)
HSLhsl(268, 48%, 20%)
HSVhsv(268, 65%, 29%)
CMYKcmyk(35.1%, 64.9%, 0%, 71%)
CIE-LABlab(14.74, 22.35, -25.91)
CIE-LCHlch(14.74, 34.21, 310.79°)
OKLaboklab(27.45% 0.0461 -0.0733)
OKLCHoklch(27.45% 0.087 302.1)
XYZxyz(2.8241, 1.8616, 6.6878)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4A #344A1A
analogous
#1A1C4A #301A4A #481A4A
triadic
#301A4A #4A301A #1A4A30
tetradic
#301A4A #4A1A1C #344A1A #1A4A48
square
#301A4A #4A1A1C #344A1A #1A4A48
split-complementary
#301A4A #4A481A #1C4A1A
monochromatic
#0F0817 #130A1D #301A4A #4D2A77 #6B3AA5

Accessibility & contrast

On white

15.30
#301A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A4A
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4A#FFFFFF#000000##FFFFFF
##301A4A1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#0D2549
Tritanopia (blue-blind)
#2B242F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301a4a;
/* rgb */ color: rgb(48, 26, 74);
/* oklch */ color: oklch(27.5% 0.087 302.1);
Tailwind
colors: {
  custom: {
    50: '#6a577d',
    500: '#301a4a',
    950: '#000000',
  },
}
SCSS
$custom: #301a4a;
$custom-light: #6a577d;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4a",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 74
  },
  "hsl": {
    "h": 267.5,
    "s": 48,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27453,
    "c": 0.08658,
    "h": 302.1
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#301A4A
secondary
#638040
accent
#D8509A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #301A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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