#301A6A#301A6A

#301A6A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.130 H 288.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#301A6A
RGBrgb(48, 26, 106)
HSLhsl(257, 61%, 26%)
HSVhsv(257, 75%, 42%)
CMYKcmyk(54.7%, 75.5%, 0%, 58.4%)
CIE-LABlab(17.50, 32.24, -42.90)
CIE-LCHlch(17.50, 53.66, 306.93°)
OKLaboklab(30.3% 0.0418 -0.1232)
OKLCHoklch(30.3% 0.13 288.7)
XYZxyz(4.1891, 2.4076, 13.8769)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A6A #546A1A
analogous
#1A2C6A #301A6A #581A6A
triadic
#301A6A #6A301A #1A6A30
tetradic
#301A6A #6A1A2C #546A1A #1A6A58
square
#301A6A #6A1A2C #546A1A #1A6A58
split-complementary
#301A6A #6A581A #2C6A1A
monochromatic
#0B0619 #1A0E39 #301A6A #46269B #5D32CC

Accessibility & contrast

On white

14.17
#301A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A6A
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A6A#FFFFFF#000000##FFFFFF
##301A6A1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002968
Tritanopia (blue-blind)
#1A2F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301a6a;
/* rgb */ color: rgb(48, 26, 106);
/* oklch */ color: oklch(30.3% 0.130 288.7);
Tailwind
colors: {
  custom: {
    50: '#6f5995',
    500: '#301a6a',
    950: '#000000',
  },
}
SCSS
$custom: #301a6a;
$custom-light: #6f5995;
$custom-dark: #000000;
JSON
{
  "hex": "#301a6a",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 256.5,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30297,
    "c": 0.13013,
    "h": 288.7
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#301A6A
secondary
#859F40
accent
#E444B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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