#30206F#30206F

#30206F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.129 H 285.7°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#30206F
RGBrgb(48, 32, 111)
HSLhsl(252, 55%, 28%)
HSVhsv(252, 71%, 44%)
CMYKcmyk(56.8%, 71.2%, 0%, 56.5%)
CIE-LABlab(19.26, 30.27, -43.26)
CIE-LCHlch(19.26, 52.80, 304.98°)
OKLaboklab(31.7% 0.0349 -0.1243)
OKLCHoklch(31.7% 0.129 285.7)
XYZxyz(4.6038, 2.8088, 15.3354)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30206F #5F6F20
analogous
#20376F #30206F #57206F
triadic
#30206F #6F3020 #206F30
tetradic
#30206F #6F2037 #5F6F20 #206F57
square
#30206F #6F2037 #5F6F20 #206F57
split-complementary
#30206F #6F5720 #376F20
monochromatic
#0A0718 #1B123F #30206F #452E9F #5D41C8

Accessibility & contrast

On white

13.45
#30206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#30206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30206F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30206F#FFFFFF#000000##FFFFFF
##30206F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#153444
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30206f;
/* rgb */ color: rgb(48, 32, 111);
/* oklch */ color: oklch(31.7% 0.129 285.7);
Tailwind
colors: {
  custom: {
    50: '#705d99',
    500: '#30206f',
    950: '#000000',
  },
}
SCSS
$custom: #30206f;
$custom-light: #705d99;
$custom-dark: #000000;
JSON
{
  "hex": "#30206f",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 252.152,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31704,
    "c": 0.12914,
    "h": 285.7
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#30206F
secondary
#90A348
accent
#DF49C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #30206F

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

Preview Lab → · Contrast checker → · Palette generator →

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