#301A68#301A68

#301A68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.128 H 289.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#301A68
RGBrgb(48, 26, 104)
HSLhsl(257, 60%, 25%)
HSVhsv(257, 75%, 41%)
CMYKcmyk(53.8%, 75%, 0%, 59.2%)
CIE-LABlab(17.30, 31.61, -41.90)
CIE-LCHlch(17.30, 52.49, 307.03°)
OKLaboklab(30.1% 0.0423 -0.1203)
OKLCHoklch(30.1% 0.128 289.3)
XYZxyz(4.0863, 2.3665, 13.3355)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A68 #52681A
analogous
#1A2B68 #301A68 #571A68
triadic
#301A68 #68301A #1A6830
tetradic
#301A68 #681A2B #52681A #1A6857
square
#301A68 #681A2B #52681A #1A6857
split-complementary
#301A68 #68571A #2B681A
monochromatic
#0B0618 #190E37 #301A68 #472699 #5D32CA

Accessibility & contrast

On white

14.25
#301A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A68
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A68#FFFFFF#000000##FFFFFF
##301A681.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1C2E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301a68;
/* rgb */ color: rgb(48, 26, 104);
/* oklch */ color: oklch(30.1% 0.128 289.3);
Tailwind
colors: {
  custom: {
    50: '#6f5994',
    500: '#301a68',
    950: '#000000',
  },
}
SCSS
$custom: #301a68;
$custom-light: #6f5994;
$custom-dark: #000000;
JSON
{
  "hex": "#301a68",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 256.923,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30102,
    "c": 0.12752,
    "h": 289.3
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#301A68
secondary
#839D40
accent
#E345B6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301A68

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

Preview Lab → · Contrast checker → · Palette generator →

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