#301D63#301D63

#301D63 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.117 H 290.0°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#301D63
RGBrgb(48, 29, 99)
HSLhsl(256, 55%, 25%)
HSVhsv(256, 71%, 39%)
CMYKcmyk(51.5%, 70.7%, 0%, 61.2%)
CIE-LABlab(17.50, 28.22, -38.30)
CIE-LCHlch(17.50, 47.57, 306.38°)
OKLaboklab(30.1% 0.04 -0.1097)
OKLCHoklch(30.1% 0.117 290)
XYZxyz(3.9098, 2.4078, 12.0607)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D63 #50631D
analogous
#1D2D63 #301D63 #531D63
triadic
#301D63 #63301D #1D6330
tetradic
#301D63 #631D2D #50631D #1D6353
square
#301D63 #631D2D #50631D #1D6353
split-complementary
#301D63 #63531D #2D631D
monochromatic
#0B0718 #190F34 #301D63 #472B92 #5E39C2

Accessibility & contrast

On white

14.17
#301D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D63
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D63#FFFFFF#000000##FFFFFF
##301D631.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#1F2E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301d63;
/* rgb */ color: rgb(48, 29, 99);
/* oklch */ color: oklch(30.1% 0.117 290.0);
Tailwind
colors: {
  custom: {
    50: '#6e5a90',
    500: '#301d63',
    950: '#000000',
  },
}
SCSS
$custom: #301d63;
$custom-light: #6e5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#301d63",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 256.286,
    "s": 54.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30097,
    "c": 0.11681,
    "h": 290
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#301D63
secondary
#819844
accent
#DE4AB6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #301D63

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

Preview Lab → · Contrast checker → · Palette generator →

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