#301C74#301C74

#301C74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.141 H 285.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#301C74
RGBrgb(48, 28, 116)
HSLhsl(254, 61%, 28%)
HSVhsv(254, 76%, 45%)
CMYKcmyk(58.6%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.88, 34.27, -47.11)
CIE-LCHlch(18.88, 58.25, 306.03°)
OKLaboklab(31.58% 0.0376 -0.1356)
OKLCHoklch(31.58% 0.141 285.5)
XYZxyz(4.7856, 2.7196, 16.7924)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C74 #60741C
analogous
#1C3474 #301C74 #5C1C74
triadic
#301C74 #74301C #1C7430
tetradic
#301C74 #741C34 #60741C #1C745C
square
#301C74 #741C34 #60741C #1C745C
split-complementary
#301C74 #745C1C #34741C
monochromatic
#0A0619 #1C1043 #301C74 #4428A5 #5D3BD0

Accessibility & contrast

On white

13.60
#301C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C74
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C74#FFFFFF#000000##FFFFFF
##301C741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#103446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301c74;
/* rgb */ color: rgb(48, 28, 116);
/* oklch */ color: oklch(31.6% 0.141 285.5);
Tailwind
colors: {
  custom: {
    50: '#715a9d',
    500: '#301c74',
    950: '#000000',
  },
}
SCSS
$custom: #301c74;
$custom-light: #715a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#301c74",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 253.636,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31582,
    "c": 0.14071,
    "h": 285.5
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#301C74
secondary
#91A843
accent
#E444C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C74

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

Preview Lab → · Contrast checker → · Palette generator →

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