#301C63#301C63

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

Color values

HEX#301C63
RGBrgb(48, 28, 99)
HSLhsl(257, 56%, 25%)
HSVhsv(257, 72%, 39%)
CMYKcmyk(51.5%, 71.7%, 0%, 61.2%)
CIE-LABlab(17.27, 28.83, -38.67)
CIE-LCHlch(17.27, 48.23, 306.71°)
OKLaboklab(29.94% 0.0411 -0.1108)
OKLCHoklch(29.94% 0.118 290.4)
XYZxyz(3.8857, 2.3596, 12.0527)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C63 #4F631C
analogous
#1C2C63 #301C63 #531C63
triadic
#301C63 #63301C #1C6330
tetradic
#301C63 #631C2C #4F631C #1C6353
square
#301C63 #631C2C #4F631C #1C6353
split-complementary
#301C63 #63531C #2C631C
monochromatic
#0C0718 #190F33 #301C63 #472993 #5E37C2

Accessibility & contrast

On white

14.27
#301C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C63
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C63#FFFFFF#000000##FFFFFF
##301C631.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301c63;
/* rgb */ color: rgb(48, 28, 99);
/* oklch */ color: oklch(29.9% 0.118 290.4);
Tailwind
colors: {
  custom: {
    50: '#6e5a90',
    500: '#301c63',
    950: '#000000',
  },
}
SCSS
$custom: #301c63;
$custom-light: #6e5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#301c63",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 256.901,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29935,
    "c": 0.11821,
    "h": 290.4
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#301C63
secondary
#809843
accent
#DF49B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #301C63

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

Preview Lab → · Contrast checker → · Palette generator →

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