#301899#301899

#301899 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.190 H 278.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#301899
RGBrgb(48, 24, 153)
HSLhsl(251, 73%, 35%)
HSVhsv(251, 84%, 60%)
CMYKcmyk(68.6%, 84.3%, 0%, 40%)
CIE-LABlab(22.23, 47.67, -64.85)
CIE-LCHlch(22.23, 80.48, 306.32°)
OKLaboklab(35.12% 0.029 -0.1873)
OKLCHoklch(35.12% 0.19 278.8)
XYZxyz(7.2935, 3.5809, 30.4376)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301899 #819918
analogous
#184099 #301899 #711899
triadic
#301899 #993018 #189930
tetradic
#301899 #991840 #819918 #189971
square
#301899 #991840 #819918 #189971
split-complementary
#301899 #997118 #409918
monochromatic
#0F072F #1F1064 #301899 #4120CE #6649E2

Accessibility & contrast

On white

12.23
#301899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#301899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301899
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301899#FFFFFF#000000##FFFFFF
##3018991.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301899;
/* rgb */ color: rgb(48, 24, 153);
/* oklch */ color: oklch(35.1% 0.190 278.8);
Tailwind
colors: {
  custom: {
    50: '#795bb8',
    500: '#301899',
    950: '#000000',
  },
}
SCSS
$custom: #301899;
$custom-light: #795bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301899",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 251.163,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35119,
    "c": 0.1895,
    "h": 278.8
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#301899
secondary
#ADC449
accent
#F038CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301899

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

Preview Lab → · Contrast checker → · Palette generator →

#301899 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva