#301862#301862

#301862 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.122 H 291.9°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#301862
RGBrgb(48, 24, 98)
HSLhsl(259, 61%, 24%)
HSVhsv(259, 76%, 38%)
CMYKcmyk(51%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.32, 30.89, -39.55)
CIE-LCHlch(16.32, 50.18, 307.99°)
OKLaboklab(29.23% 0.0456 -0.1134)
OKLCHoklch(29.23% 0.122 291.9)
XYZxyz(3.7495, 2.1634, 11.7729)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301862 #4A6218
analogous
#182562 #301862 #551862
triadic
#301862 #623018 #186230
tetradic
#301862 #621825 #4A6218 #186255
square
#301862 #621825 #4A6218 #186255
split-complementary
#301862 #625518 #256218
monochromatic
#0C0619 #180C31 #301862 #482493 #6030C4

Accessibility & contrast

On white

14.66
#301862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301862
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301862#FFFFFF#000000##FFFFFF
##3018621.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#202B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301862;
/* rgb */ color: rgb(48, 24, 98);
/* oklch */ color: oklch(29.2% 0.122 291.9);
Tailwind
colors: {
  custom: {
    50: '#6e578f',
    500: '#301862',
    950: '#000000',
  },
}
SCSS
$custom: #301862;
$custom-light: #6e578f;
$custom-dark: #000000;
JSON
{
  "hex": "#301862",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 259.459,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29229,
    "c": 0.12224,
    "h": 291.9
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#301862
secondary
#7B983E
accent
#E444B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301862

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

Preview Lab → · Contrast checker → · Palette generator →

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