#301A50#301A50

#301A50 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.095 H 298.9°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#301A50
RGBrgb(48, 26, 80)
HSLhsl(264, 51%, 21%)
HSVhsv(264, 68%, 31%)
CMYKcmyk(40%, 67.5%, 0%, 68.6%)
CIE-LABlab(15.20, 24.15, -29.28)
CIE-LCHlch(15.20, 37.95, 309.51°)
OKLaboklab(27.94% 0.0459 -0.0832)
OKLCHoklch(27.94% 0.095 298.9)
XYZxyz(3.0359, 1.9463, 7.8036)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A50 #3A501A
analogous
#1A1F50 #301A50 #4B1A50
triadic
#301A50 #50301A #1A5030
tetradic
#301A50 #501A1F #3A501A #1A504B
square
#301A50 #501A1F #3A501A #1A504B
split-complementary
#301A50 #504B1A #1F501A
monochromatic
#0E0817 #140B22 #301A50 #4C297E #6738AC

Accessibility & contrast

On white

15.12
#301A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A50
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A50#FFFFFF#000000##FFFFFF
##301A501.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#05264F
Tritanopia (blue-blind)
#292632
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301a50;
/* rgb */ color: rgb(48, 26, 80);
/* oklch */ color: oklch(27.9% 0.095 298.9);
Tailwind
colors: {
  custom: {
    50: '#6b5881',
    500: '#301a50',
    950: '#000000',
  },
}
SCSS
$custom: #301a50;
$custom-light: #6b5881;
$custom-dark: #000000;
JSON
{
  "hex": "#301a50",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 264.444,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27935,
    "c": 0.09502,
    "h": 298.9
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#301A50
secondary
#698640
accent
#DA4DA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A50

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

Preview Lab → · Contrast checker → · Palette generator →

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