#301D6A#301D6A

#301D6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.126 H 287.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#301D6A
RGBrgb(48, 29, 106)
HSLhsl(255, 57%, 26%)
HSVhsv(255, 73%, 42%)
CMYKcmyk(54.7%, 72.6%, 0%, 58.4%)
CIE-LABlab(18.13, 30.47, -41.86)
CIE-LCHlch(18.13, 51.77, 306.06°)
OKLaboklab(30.75% 0.0388 -0.1202)
OKLCHoklch(30.75% 0.126 287.9)
XYZxyz(4.2590, 2.5475, 13.9002)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D6A #576A1D
analogous
#1D316A #301D6A #571D6A
triadic
#301D6A #6A301D #1D6A30
tetradic
#301D6A #6A1D31 #576A1D #1D6A57
square
#301D6A #6A1D31 #576A1D #1D6A57
split-complementary
#301D6A #6A571D #316A1D
monochromatic
#0B0718 #1A103A #301D6A #462A9A #5C39C9

Accessibility & contrast

On white

13.91
#301D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D6A
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D6A#FFFFFF#000000##FFFFFF
##301D6A1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#1A3141
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301d6a;
/* rgb */ color: rgb(48, 29, 106);
/* oklch */ color: oklch(30.8% 0.126 287.9);
Tailwind
colors: {
  custom: {
    50: '#6f5b95',
    500: '#301d6a',
    950: '#000000',
  },
}
SCSS
$custom: #301d6a;
$custom-light: #6f5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#301d6a",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 254.805,
    "s": 57.037,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30751,
    "c": 0.12631,
    "h": 287.9
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#301D6A
secondary
#889F44
accent
#E048BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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