#301374#301374

#301374 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.150 H 287.3°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#301374
RGBrgb(48, 19, 116)
HSLhsl(258, 72%, 26%)
HSVhsv(258, 84%, 45%)
CMYKcmyk(58.6%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.25, 38.94, -49.80)
CIE-LCHlch(17.25, 63.22, 308.02°)
OKLaboklab(30.44% 0.0445 -0.1434)
OKLCHoklch(30.44% 0.15 287.3)
XYZxyz(4.6032, 2.3548, 16.7316)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301374 #577413
analogous
#132774 #301374 #611374
triadic
#301374 #743013 #137430
tetradic
#301374 #741327 #577413 #137461
square
#301374 #741327 #577413 #137461
split-complementary
#301374 #746113 #277413
monochromatic
#0B041A #1A0A3F #301374 #461CA9 #5C26DB

Accessibility & contrast

On white

14.28
#301374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301374
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301374#FFFFFF#000000##FFFFFF
##3013741.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#103044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301374;
/* rgb */ color: rgb(48, 19, 116);
/* oklch */ color: oklch(30.4% 0.150 287.3);
Tailwind
colors: {
  custom: {
    50: '#72559d',
    500: '#301374',
    950: '#000000',
  },
}
SCSS
$custom: #301374;
$custom-light: #72559d;
$custom-dark: #000000;
JSON
{
  "hex": "#301374",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 257.938,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30437,
    "c": 0.15013,
    "h": 287.3
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#301374
secondary
#88AA38
accent
#EF39B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301374

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

Preview Lab → · Contrast checker → · Palette generator →

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