#301A74#301A74

#301A74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.143 H 285.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#301A74
RGBrgb(48, 26, 116)
HSLhsl(255, 63%, 28%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(58.6%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.49, 35.39, -47.76)
CIE-LCHlch(18.49, 59.44, 306.54°)
OKLaboklab(31.3% 0.0393 -0.1375)
OKLCHoklch(31.3% 0.143 285.9)
XYZxyz(4.7398, 2.6279, 16.7771)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A74 #5E741A
analogous
#1A3174 #301A74 #5D1A74
triadic
#301A74 #74301A #1A7430
tetradic
#301A74 #741A31 #5E741A #1A745D
square
#301A74 #741A31 #5E741A #1A745D
split-complementary
#301A74 #745D1A #31741A
monochromatic
#0A0619 #1B0F42 #301A74 #4525A6 #5C36D2

Accessibility & contrast

On white

13.77
#301A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A74
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A74#FFFFFF#000000##FFFFFF
##301A741.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#103345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301a74;
/* rgb */ color: rgb(48, 26, 116);
/* oklch */ color: oklch(31.3% 0.143 285.9);
Tailwind
colors: {
  custom: {
    50: '#71599d',
    500: '#301a74',
    950: '#000000',
  },
}
SCSS
$custom: #301a74;
$custom-light: #71599d;
$custom-dark: #000000;
JSON
{
  "hex": "#301a74",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 254.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31302,
    "c": 0.14298,
    "h": 285.9
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#301A74
secondary
#8FA941
accent
#E641BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301A74

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

Preview Lab → · Contrast checker → · Palette generator →

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