#30207F#30207F

#30207F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.150 H 282.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#30207F
RGBrgb(48, 32, 127)
HSLhsl(250, 60%, 31%)
HSVhsv(250, 75%, 50%)
CMYKcmyk(62.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(20.80, 35.52, -50.99)
CIE-LCHlch(20.80, 62.14, 304.87°)
OKLaboklab(33.28% 0.0317 -0.147)
OKLCHoklch(33.28% 0.15 282.2)
XYZxyz(5.5650, 3.1933, 20.3977)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30207F #6F7F20
analogous
#203F7F #30207F #5F207F
triadic
#30207F #7F3020 #207F30
tetradic
#30207F #7F203F #6F7F20 #207F5F
square
#30207F #7F203F #6F7F20 #207F5F
split-complementary
#30207F #7F5F20 #3F7F20
monochromatic
#0B071D #1E144E #30207F #422CB0 #5F48D1

Accessibility & contrast

On white

12.81
#30207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30207F
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30207F#FFFFFF#000000##FFFFFF
##30207F1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30207f;
/* rgb */ color: rgb(48, 32, 127);
/* oklch */ color: oklch(33.3% 0.150 282.2);
Tailwind
colors: {
  custom: {
    50: '#735da5',
    500: '#30207f',
    950: '#000000',
  },
}
SCSS
$custom: #30207f;
$custom-light: #735da5;
$custom-dark: #000000;
JSON
{
  "hex": "#30207f",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 250.105,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33276,
    "c": 0.15035,
    "h": 282.2
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#30207F
secondary
#A0B249
accent
#E345C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30207F

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

Preview Lab → · Contrast checker → · Palette generator →

#30207F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva