#301174#301174

#301174 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.152 H 287.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#301174
RGBrgb(48, 17, 116)
HSLhsl(259, 74%, 26%)
HSVhsv(259, 85%, 45%)
CMYKcmyk(58.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.94, 39.84, -50.31)
CIE-LCHlch(16.94, 64.17, 308.38°)
OKLaboklab(30.22% 0.0458 -0.1448)
OKLCHoklch(30.22% 0.152 287.6)
XYZxyz(4.5708, 2.2900, 16.7208)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301174 #557411
analogous
#112374 #301174 #611174
triadic
#301174 #743011 #117430
tetradic
#301174 #741123 #557411 #117461
square
#301174 #741123 #557411 #117461
split-complementary
#301174 #746111 #237411
monochromatic
#0B041B #1A093F #301174 #4619A9 #5C21DE

Accessibility & contrast

On white

14.40
#301174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#301174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301174
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301174#FFFFFF#000000##FFFFFF
##3011741.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#112F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #301174;
/* rgb */ color: rgb(48, 17, 116);
/* oklch */ color: oklch(30.2% 0.152 287.6);
Tailwind
colors: {
  custom: {
    50: '#72549d',
    500: '#301174',
    950: '#000000',
  },
}
SCSS
$custom: #301174;
$custom-light: #72549d;
$custom-dark: #000000;
JSON
{
  "hex": "#301174",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 258.788,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30224,
    "c": 0.15191,
    "h": 287.6
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#301174
secondary
#86AB36
accent
#F137B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #301174

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

Preview Lab → · Contrast checker → · Palette generator →

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