#301874#301874

#301874 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.145 H 286.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#301874
RGBrgb(48, 24, 116)
HSLhsl(256, 66%, 27%)
HSVhsv(256, 79%, 45%)
CMYKcmyk(58.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.11, 36.46, -48.38)
CIE-LCHlch(18.11, 60.58, 307.00°)
OKLaboklab(31.04% 0.0409 -0.1393)
OKLCHoklch(31.04% 0.145 286.4)
XYZxyz(4.6970, 2.5423, 16.7628)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301874 #5C7418
analogous
#182E74 #301874 #5E1874
triadic
#301874 #743018 #187430
tetradic
#301874 #74182E #5C7418 #18745E
square
#301874 #74182E #5C7418 #18745E
split-complementary
#301874 #745E18 #2E7418
monochromatic
#0A0519 #1B0E41 #301874 #4522A7 #5C32D5

Accessibility & contrast

On white

13.92
#301874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301874
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301874#FFFFFF#000000##FFFFFF
##3018741.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301874;
/* rgb */ color: rgb(48, 24, 116);
/* oklch */ color: oklch(31.0% 0.145 286.4);
Tailwind
colors: {
  custom: {
    50: '#71589d',
    500: '#301874',
    950: '#000000',
  },
}
SCSS
$custom: #301874;
$custom-light: #71589d;
$custom-dark: #000000;
JSON
{
  "hex": "#301874",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 255.652,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31036,
    "c": 0.14517,
    "h": 286.4
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#301874
secondary
#8DA93F
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301874

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

Preview Lab → · Contrast checker → · Palette generator →

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