#301863#301863

#301863 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.124 H 291.6°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#301863
RGBrgb(48, 24, 99)
HSLhsl(259, 61%, 24%)
HSVhsv(259, 76%, 39%)
CMYKcmyk(51.5%, 75.8%, 0%, 61.2%)
CIE-LABlab(16.42, 31.20, -40.06)
CIE-LCHlch(16.42, 50.78, 307.91°)
OKLaboklab(29.33% 0.0454 -0.1149)
OKLCHoklch(29.33% 0.124 291.6)
XYZxyz(3.7971, 2.1824, 12.0231)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301863 #4B6318
analogous
#182663 #301863 #561863
triadic
#301863 #633018 #186330
tetradic
#301863 #631826 #4B6318 #186356
square
#301863 #631826 #4B6318 #186356
split-complementary
#301863 #635618 #266318
monochromatic
#0C0619 #180C32 #301863 #482494 #6030C6

Accessibility & contrast

On white

14.62
#301863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301863
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301863#FFFFFF#000000##FFFFFF
##3018631.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#202B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301863;
/* rgb */ color: rgb(48, 24, 99);
/* oklch */ color: oklch(29.3% 0.124 291.6);
Tailwind
colors: {
  custom: {
    50: '#6e5790',
    500: '#301863',
    950: '#000000',
  },
}
SCSS
$custom: #301863;
$custom-light: #6e5790;
$custom-dark: #000000;
JSON
{
  "hex": "#301863",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 259.2,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29325,
    "c": 0.12354,
    "h": 291.6
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#301863
secondary
#7C993E
accent
#E444B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #301863

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

Preview Lab → · Contrast checker → · Palette generator →

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