#30204C#30204C

#30204C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.079 H 298.1°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#30204C
RGBrgb(48, 32, 76)
HSLhsl(262, 41%, 21%)
HSVhsv(262, 58%, 30%)
CMYKcmyk(36.8%, 57.9%, 0%, 70.2%)
CIE-LABlab(16.42, 18.96, -24.59)
CIE-LCHlch(16.42, 31.05, 307.64°)
OKLaboklab(28.74% 0.037 -0.0695)
OKLCHoklch(28.74% 0.079 298.1)
XYZxyz(3.0396, 2.1832, 7.0973)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30204C #3C4C20
analogous
#20264C #30204C #46204C
triadic
#30204C #4C3020 #204C30
tetradic
#30204C #4C2026 #3C4C20 #204C46
square
#30204C #4C2026 #3C4C20 #204C46
split-complementary
#30204C #4C4620 #264C20
monochromatic
#0E0916 #150E21 #30204C #4B3277 #6644A2

Accessibility & contrast

On white

14.62
#30204C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#30204C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30204C
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30204C#FFFFFF#000000##FFFFFF
##30204C1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F294E
Deuteranopia (green-blind)
#14284B
Tritanopia (blue-blind)
#2A2932
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #30204c;
/* rgb */ color: rgb(48, 32, 76);
/* oklch */ color: oklch(28.7% 0.079 298.1);
Tailwind
colors: {
  custom: {
    50: '#6a5c7e',
    500: '#30204c',
    950: '#000000',
  },
}
SCSS
$custom: #30204c;
$custom-light: #6a5c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#30204c",
  "rgb": {
    "r": 48,
    "g": 32,
    "b": 76
  },
  "hsl": {
    "h": 261.818,
    "s": 40.741,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.07872,
    "h": 298.1
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#30204C
secondary
#6C8047
accent
#D157A4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #30204C

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

Preview Lab → · Contrast checker → · Palette generator →

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