#301C55#301C55

#301C55 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.099 H 295.7°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#301C55
RGBrgb(48, 28, 85)
HSLhsl(261, 50%, 22%)
HSVhsv(261, 67%, 33%)
CMYKcmyk(43.5%, 67.1%, 0%, 66.7%)
CIE-LABlab(16.08, 24.41, -31.26)
CIE-LCHlch(16.08, 39.66, 307.99°)
OKLaboklab(28.7% 0.0428 -0.089)
OKLCHoklch(28.7% 0.099 295.7)
XYZxyz(3.2734, 2.1147, 8.8283)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C55 #41551C
analogous
#1C2555 #301C55 #4D1C55
triadic
#301C55 #55301C #1C5530
tetradic
#301C55 #551C25 #41551C #1C554D
square
#301C55 #551C25 #41551C #1C554D
split-complementary
#301C55 #554D1C #25551C
monochromatic
#0D0817 #160D27 #301C55 #4A2B83 #643AB1

Accessibility & contrast

On white

14.76
#301C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C55
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C55#FFFFFF#000000##FFFFFF
##301C551.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#272935
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301c55;
/* rgb */ color: rgb(48, 28, 85);
/* oklch */ color: oklch(28.7% 0.099 295.7);
Tailwind
colors: {
  custom: {
    50: '#6c5985',
    500: '#301c55',
    950: '#000000',
  },
}
SCSS
$custom: #301c55;
$custom-light: #6c5985;
$custom-dark: #000000;
JSON
{
  "hex": "#301c55",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 261.053,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.09881,
    "h": 295.7
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#301C55
secondary
#718B42
accent
#DA4EA9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301C55

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

Preview Lab → · Contrast checker → · Palette generator →

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