#301995#301995

#301995 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.184 H 279.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#301995
RGBrgb(48, 25, 149)
HSLhsl(251, 71%, 34%)
HSVhsv(251, 83%, 58%)
CMYKcmyk(67.8%, 83.2%, 0%, 41.6%)
CIE-LABlab(21.92, 46.04, -62.91)
CIE-LCHlch(21.92, 77.95, 306.20°)
OKLaboklab(34.77% 0.0299 -0.1816)
OKLCHoklch(34.77% 0.184 279.3)
XYZxyz(6.9896, 3.4930, 28.7338)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301995 #7E9519
analogous
#194095 #301995 #6E1995
triadic
#301995 #953019 #199530
tetradic
#301995 #951940 #7E9519 #19956E
square
#301995 #951940 #7E9519 #19956E
split-complementary
#301995 #956E19 #409519
monochromatic
#0E072C #1F1061 #301995 #4122C9 #6448E0

Accessibility & contrast

On white

12.36
#301995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#301995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301995
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301995#FFFFFF#000000##FFFFFF
##3019951.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301995;
/* rgb */ color: rgb(48, 25, 149);
/* oklch */ color: oklch(34.8% 0.184 279.3);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#301995',
    950: '#000000',
  },
}
SCSS
$custom: #301995;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#301995",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 251.129,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.18408,
    "h": 279.3
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#301995
secondary
#ABC248
accent
#EE3ACD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301995

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

Preview Lab → · Contrast checker → · Palette generator →

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