#30207C#30207C

#30207C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.146 H 282.8°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#30207C
RGBrgb(48, 32, 124)
HSLhsl(250, 59%, 31%)
HSVhsv(250, 74%, 49%)
CMYKcmyk(61.3%, 74.2%, 0%, 51.4%)
CIE-LABlab(20.50, 34.54, -49.57)
CIE-LCHlch(20.50, 60.42, 304.87°)
OKLaboklab(32.97% 0.0324 -0.1428)
OKLCHoklch(32.97% 0.146 282.8)
XYZxyz(5.3724, 3.1163, 19.3833)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30207C #6C7C20
analogous
#203E7C #30207C #5E207C
triadic
#30207C #7C3020 #207C30
tetradic
#30207C #7C203E #6C7C20 #207C5E
square
#30207C #7C203E #6C7C20 #207C5E
split-complementary
#30207C #7C5E20 #3E7C20
monochromatic
#0A071B #1D134B #30207C #432DAD #5F47CF

Accessibility & contrast

On white

12.94
#30207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#30207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30207C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30207C#FFFFFF#000000##FFFFFF
##30207C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30207c;
/* rgb */ color: rgb(48, 32, 124);
/* oklch */ color: oklch(33.0% 0.146 282.8);
Tailwind
colors: {
  custom: {
    50: '#725da3',
    500: '#30207c',
    950: '#000000',
  },
}
SCSS
$custom: #30207c;
$custom-light: #725da3;
$custom-dark: #000000;
JSON
{
  "hex": "#30207c",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 250.435,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32973,
    "c": 0.14645,
    "h": 282.8
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#30207C
secondary
#9DAF49
accent
#E246C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30207C

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

Preview Lab → · Contrast checker → · Palette generator →

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