#301A63#301A63

#301A63 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.6% C 0.121 H 291.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#301A63
RGBrgb(48, 26, 99)
HSLhsl(258, 58%, 25%)
HSVhsv(258, 74%, 39%)
CMYKcmyk(51.5%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.83, 30.04, -39.38)
CIE-LCHlch(16.83, 49.52, 307.33°)
OKLaboklab(29.62% 0.0433 -0.1129)
OKLCHoklch(29.62% 0.121 291)
XYZxyz(3.8398, 2.2679, 12.0374)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A63 #4D631A
analogous
#1A2963 #301A63 #551A63
triadic
#301A63 #63301A #1A6330
tetradic
#301A63 #631A29 #4D631A #1A6355
square
#301A63 #631A29 #4D631A #1A6355
split-complementary
#301A63 #63551A #29631A
monochromatic
#0C0618 #180D33 #301A63 #482793 #5F33C4

Accessibility & contrast

On white

14.45
#301A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A63
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A63#FFFFFF#000000##FFFFFF
##301A631.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1F2D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301a63;
/* rgb */ color: rgb(48, 26, 99);
/* oklch */ color: oklch(29.6% 0.121 291.0);
Tailwind
colors: {
  custom: {
    50: '#6e5890',
    500: '#301a63',
    950: '#000000',
  },
}
SCSS
$custom: #301a63;
$custom-light: #6e5890;
$custom-dark: #000000;
JSON
{
  "hex": "#301a63",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 258.082,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29623,
    "c": 0.12092,
    "h": 291
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#301A63
secondary
#7E9940
accent
#E246B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #301A63

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

Preview Lab → · Contrast checker → · Palette generator →

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