#301774#301774

#301774 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.146 H 286.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#301774
RGBrgb(48, 23, 116)
HSLhsl(256, 67%, 27%)
HSVhsv(256, 80%, 45%)
CMYKcmyk(58.6%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.93, 36.98, -48.68)
CIE-LCHlch(17.93, 61.14, 307.22°)
OKLaboklab(30.91% 0.0417 -0.1401)
OKLCHoklch(30.91% 0.146 286.6)
XYZxyz(4.6768, 2.5019, 16.7561)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301774 #5B7417
analogous
#172D74 #301774 #5F1774
triadic
#301774 #743017 #177430
tetradic
#301774 #74172D #5B7417 #17745F
square
#301774 #74172D #5B7417 #17745F
split-complementary
#301774 #745F17 #2D7417
monochromatic
#0B051A #1B0D41 #301774 #4521A7 #5C30D6

Accessibility & contrast

On white

14.00
#301774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301774
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301774#FFFFFF#000000##FFFFFF
##3017741.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#103245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301774;
/* rgb */ color: rgb(48, 23, 116);
/* oklch */ color: oklch(30.9% 0.146 286.6);
Tailwind
colors: {
  custom: {
    50: '#71579d',
    500: '#301774',
    950: '#000000',
  },
}
SCSS
$custom: #301774;
$custom-light: #71579d;
$custom-dark: #000000;
JSON
{
  "hex": "#301774",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 256.129,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30909,
    "c": 0.14621,
    "h": 286.6
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#301774
secondary
#8CA93D
accent
#EA3EBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301774

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

Preview Lab → · Contrast checker → · Palette generator →

#301774 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva