#301C68#301C68

#301C68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.4% C 0.125 H 288.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#301C68
RGBrgb(48, 28, 104)
HSLhsl(256, 58%, 26%)
HSVhsv(256, 73%, 41%)
CMYKcmyk(53.8%, 73.1%, 0%, 59.2%)
CIE-LABlab(17.73, 30.43, -41.21)
CIE-LCHlch(17.73, 51.23, 306.44°)
OKLaboklab(30.4% 0.0402 -0.1183)
OKLCHoklch(30.4% 0.125 288.8)
XYZxyz(4.1321, 2.4582, 13.3508)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C68 #54681C
analogous
#1C2E68 #301C68 #561C68
triadic
#301C68 #68301C #1C6830
tetradic
#301C68 #681C2E #54681C #1C6856
square
#301C68 #681C2E #54681C #1C6856
split-complementary
#301C68 #68561C #2E681C
monochromatic
#0B0618 #1A0F38 #301C68 #462998 #5D36C8

Accessibility & contrast

On white

14.08
#301C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C68
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C68#FFFFFF#000000##FFFFFF
##301C681.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002967
Tritanopia (blue-blind)
#1C2F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301c68;
/* rgb */ color: rgb(48, 28, 104);
/* oklch */ color: oklch(30.4% 0.125 288.8);
Tailwind
colors: {
  custom: {
    50: '#6f5a94',
    500: '#301c68',
    950: '#000000',
  },
}
SCSS
$custom: #301c68;
$custom-light: #6f5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#301c68",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 255.789,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30405,
    "c": 0.12494,
    "h": 288.8
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#301C68
secondary
#859D43
accent
#E147B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301C68

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

Preview Lab → · Contrast checker → · Palette generator →

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