#302080#302080

#302080 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 282.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#302080
RGBrgb(48, 32, 128)
HSLhsl(250, 60%, 31%)
HSVhsv(250, 75%, 50%)
CMYKcmyk(62.5%, 75%, 0%, 49.8%)
CIE-LABlab(20.90, 35.85, -51.45)
CIE-LCHlch(20.90, 62.71, 304.87°)
OKLaboklab(33.38% 0.0315 -0.1483)
OKLCHoklch(33.38% 0.152 282)
XYZxyz(5.6305, 3.2195, 20.7426)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302080 #708020
analogous
#204080 #302080 #602080
triadic
#302080 #803020 #208030
tetradic
#302080 #802040 #708020 #208060
square
#302080 #802040 #708020 #208060
split-complementary
#302080 #806020 #408020
monochromatic
#0B081E #1E144F #302080 #422CB1 #6049D1

Accessibility & contrast

On white

12.77
#302080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#302080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302080
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302080#FFFFFF#000000##FFFFFF
##3020801.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #302080;
/* rgb */ color: rgb(48, 32, 128);
/* oklch */ color: oklch(33.4% 0.152 282.0);
Tailwind
colors: {
  custom: {
    50: '#735da6',
    500: '#302080',
    950: '#000000',
  },
}
SCSS
$custom: #302080;
$custom-light: #735da6;
$custom-dark: #000000;
JSON
{
  "hex": "#302080",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 250,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.15164,
    "h": 282
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#302080
secondary
#A1B349
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #302080

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

Preview Lab → · Contrast checker → · Palette generator →

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