#301A5D#301A5D

#301A5D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.113 H 293.1°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#301A5D
RGBrgb(48, 26, 93)
HSLhsl(260, 56%, 23%)
HSVhsv(260, 72%, 36%)
CMYKcmyk(48.4%, 72%, 0%, 63.5%)
CIE-LABlab(16.29, 28.16, -36.28)
CIE-LCHlch(16.29, 45.92, 307.82°)
OKLaboklab(29.07% 0.0444 -0.1038)
OKLCHoklch(29.07% 0.113 293.1)
XYZxyz(3.5636, 2.1574, 10.5825)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A5D #475D1A
analogous
#1A255D #301A5D #511A5D
triadic
#301A5D #5D301A #1A5D30
tetradic
#301A5D #5D1A25 #475D1A #1A5D51
square
#301A5D #5D1A25 #475D1A #1A5D51
split-complementary
#301A5D #5D511A #255D1A
monochromatic
#0C0718 #170D2D #301A5D #49278D #6135BD

Accessibility & contrast

On white

14.67
#301A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A5D
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A5D#FFFFFF#000000##FFFFFF
##301A5D1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#232A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301a5d;
/* rgb */ color: rgb(48, 26, 93);
/* oklch */ color: oklch(29.1% 0.113 293.1);
Tailwind
colors: {
  custom: {
    50: '#6d588b',
    500: '#301a5d',
    950: '#000000',
  },
}
SCSS
$custom: #301a5d;
$custom-light: #6d588b;
$custom-dark: #000000;
JSON
{
  "hex": "#301a5d",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 259.701,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29066,
    "c": 0.11289,
    "h": 293.1
  },
  "luminance": 0.02157
}

Semantic roles & 50–950 ramp

primary
#301A5D
secondary
#789340
accent
#E048AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #301A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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