#301C4E#301C4E

#301C4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.089 H 299.0°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#301C4E
RGBrgb(48, 28, 78)
HSLhsl(264, 47%, 21%)
HSVhsv(264, 64%, 31%)
CMYKcmyk(38.5%, 64.1%, 0%, 69.4%)
CIE-LABlab(15.53, 22.25, -27.38)
CIE-LCHlch(15.53, 35.28, 309.10°)
OKLaboklab(28.13% 0.0431 -0.0776)
OKLCHoklch(28.13% 0.089 299)
XYZxyz(3.0090, 2.0089, 7.4355)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C4E #3A4E1C
analogous
#1C214E #301C4E #491C4E
triadic
#301C4E #4E301C #1C4E30
tetradic
#301C4E #4E1C21 #3A4E1C #1C4E49
square
#301C4E #4E1C21 #3A4E1C #1C4E49
split-complementary
#301C4E #4E491C #214E1C
monochromatic
#0E0817 #140C21 #301C4E #4C2C7B #673CA8

Accessibility & contrast

On white

14.98
#301C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C4E
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C4E#FFFFFF#000000##FFFFFF
##301C4E1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#0B264D
Tritanopia (blue-blind)
#292632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301c4e;
/* rgb */ color: rgb(48, 28, 78);
/* oklch */ color: oklch(28.1% 0.089 299.0);
Tailwind
colors: {
  custom: {
    50: '#6b5980',
    500: '#301c4e',
    950: '#000000',
  },
}
SCSS
$custom: #301c4e;
$custom-light: #6b5980;
$custom-dark: #000000;
JSON
{
  "hex": "#301c4e",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 264,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28127,
    "c": 0.08881,
    "h": 299
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#301C4E
secondary
#698442
accent
#D751A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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