#301D64#301D64

#301D64 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.118 H 289.7°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#301D64
RGBrgb(48, 29, 100)
HSLhsl(256, 55%, 25%)
HSVhsv(256, 71%, 39%)
CMYKcmyk(52%, 71%, 0%, 60.8%)
CIE-LABlab(17.59, 28.54, -38.81)
CIE-LCHlch(17.59, 48.18, 306.33°)
OKLaboklab(30.19% 0.0399 -0.1112)
OKLCHoklch(30.19% 0.118 289.7)
XYZxyz(3.9579, 2.4270, 12.3140)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D64 #51641D
analogous
#1D2E64 #301D64 #531D64
triadic
#301D64 #64301D #1D6430
tetradic
#301D64 #641D2E #51641D #1D6453
square
#301D64 #641D2E #51641D #1D6453
split-complementary
#301D64 #64531D #2E641D
monochromatic
#0B0718 #190F35 #301D64 #472B93 #5E39C3

Accessibility & contrast

On white

14.14
#301D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D64
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D64#FFFFFF#000000##FFFFFF
##301D641.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#1F2F3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301d64;
/* rgb */ color: rgb(48, 29, 100);
/* oklch */ color: oklch(30.2% 0.118 289.7);
Tailwind
colors: {
  custom: {
    50: '#6e5a91',
    500: '#301d64',
    950: '#000000',
  },
}
SCSS
$custom: #301d64;
$custom-light: #6e5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#301d64",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 256.056,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30189,
    "c": 0.11818,
    "h": 289.7
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#301D64
secondary
#829944
accent
#DE49B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #301D64

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

Preview Lab → · Contrast checker → · Palette generator →

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