#302079#302079

#302079 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.143 H 283.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#302079
RGBrgb(48, 32, 121)
HSLhsl(251, 58%, 30%)
HSVhsv(251, 74%, 47%)
CMYKcmyk(60.3%, 73.6%, 0%, 52.5%)
CIE-LABlab(20.21, 33.56, -48.14)
CIE-LCHlch(20.21, 58.69, 304.88°)
OKLaboklab(32.67% 0.033 -0.1386)
OKLCHoklch(32.67% 0.143 283.4)
XYZxyz(5.1856, 3.0415, 18.3993)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302079 #697920
analogous
#203C79 #302079 #5D2079
triadic
#302079 #793020 #207930
tetradic
#302079 #79203C #697920 #20795D
square
#302079 #79203C #697920 #20795D
split-complementary
#302079 #795D20 #3C7920
monochromatic
#0A0618 #1D1349 #302079 #432DA9 #5E45CE

Accessibility & contrast

On white

13.06
#302079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#302079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302079
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302079#FFFFFF#000000##FFFFFF
##3020791.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#06384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #302079;
/* rgb */ color: rgb(48, 32, 121);
/* oklch */ color: oklch(32.7% 0.143 283.4);
Tailwind
colors: {
  custom: {
    50: '#715da1',
    500: '#302079',
    950: '#000000',
  },
}
SCSS
$custom: #302079;
$custom-light: #715da1;
$custom-dark: #000000;
JSON
{
  "hex": "#302079",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 250.787,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.14251,
    "h": 283.4
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#302079
secondary
#9AAC49
accent
#E146C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #302079

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

Preview Lab → · Contrast checker → · Palette generator →

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