#301C70#301C70

#301C70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.136 H 286.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#301C70
RGBrgb(48, 28, 112)
HSLhsl(254, 60%, 27%)
HSVhsv(254, 75%, 44%)
CMYKcmyk(57.1%, 75%, 0%, 56.1%)
CIE-LABlab(18.49, 32.99, -45.17)
CIE-LCHlch(18.49, 55.94, 306.14°)
OKLaboklab(31.18% 0.0386 -0.1299)
OKLCHoklch(31.18% 0.136 286.5)
XYZxyz(4.5579, 2.6285, 15.5933)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C70 #5C701C
analogous
#1C3270 #301C70 #5A1C70
triadic
#301C70 #70301C #1C7030
tetradic
#301C70 #701C32 #5C701C #1C705A
square
#301C70 #701C32 #5C701C #1C705A
split-complementary
#301C70 #705A1C #32701C
monochromatic
#0A0618 #1B103F #301C70 #4528A1 #5C39CD

Accessibility & contrast

On white

13.76
#301C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C70
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C70#FFFFFF#000000##FFFFFF
##301C701.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#153244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301c70;
/* rgb */ color: rgb(48, 28, 112);
/* oklch */ color: oklch(31.2% 0.136 286.5);
Tailwind
colors: {
  custom: {
    50: '#705a9a',
    500: '#301c70',
    950: '#000000',
  },
}
SCSS
$custom: #301c70;
$custom-light: #705a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#301c70",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 254.286,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31182,
    "c": 0.13551,
    "h": 286.5
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#301C70
secondary
#8DA543
accent
#E345BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C70

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

Preview Lab → · Contrast checker → · Palette generator →

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