#30207E#30207E

#30207E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.149 H 282.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#30207E
RGBrgb(48, 32, 126)
HSLhsl(250, 59%, 31%)
HSVhsv(250, 75%, 49%)
CMYKcmyk(61.9%, 74.6%, 0%, 50.6%)
CIE-LABlab(20.70, 35.20, -50.52)
CIE-LCHlch(20.70, 61.57, 304.87°)
OKLaboklab(33.17% 0.032 -0.1456)
OKLCHoklch(33.17% 0.149 282.4)
XYZxyz(5.5002, 3.1674, 20.0562)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30207E #6E7E20
analogous
#203F7E #30207E #5F207E
triadic
#30207E #7E3020 #207E30
tetradic
#30207E #7E203F #6E7E20 #207E5F
square
#30207E #7E203F #6E7E20 #207E5F
split-complementary
#30207E #7E5F20 #3F7E20
monochromatic
#0B071C #1D144D #30207E #432CAF #5F48D0

Accessibility & contrast

On white

12.86
#30207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#30207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30207E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30207E#FFFFFF#000000##FFFFFF
##30207E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30207e;
/* rgb */ color: rgb(48, 32, 126);
/* oklch */ color: oklch(33.2% 0.149 282.4);
Tailwind
colors: {
  custom: {
    50: '#735da4',
    500: '#30207e',
    950: '#000000',
  },
}
SCSS
$custom: #30207e;
$custom-light: #735da4;
$custom-dark: #000000;
JSON
{
  "hex": "#30207e",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 250.213,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.14905,
    "h": 282.4
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #30207E

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

Preview Lab → · Contrast checker → · Palette generator →

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