#30104C#30104C

#30104C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.105 H 304.3°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#30104C
RGBrgb(48, 16, 76)
HSLhsl(272, 65%, 18%)
HSVhsv(272, 79%, 30%)
CMYKcmyk(36.8%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.74, 28.84, -30.52)
CIE-LCHlch(12.74, 41.99, 313.38°)
OKLaboklab(26.06% 0.0593 -0.0868)
OKLCHoklch(26.06% 0.105 304.3)
XYZxyz(2.7084, 1.5208, 6.9869)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30104C #2C4C10
analogous
#12104C #30104C #4C104A
triadic
#30104C #4C3010 #104C30
tetradic
#30104C #4C1210 #2C4C10 #104A4C
square
#30104C #4C1210 #2C4C10 #104A4C
split-complementary
#30104C #4A4C10 #104C12
monochromatic
#100519 #100519 #30104C #501B7F #7025B1

Accessibility & contrast

On white

16.10
#30104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#30104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30104C
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30104C#FFFFFF#000000##FFFFFF
##30104C1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2B1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #30104c;
/* rgb */ color: rgb(48, 16, 76);
/* oklch */ color: oklch(26.1% 0.105 304.3);
Tailwind
colors: {
  custom: {
    50: '#6c517e',
    500: '#30104c',
    950: '#000000',
  },
}
SCSS
$custom: #30104c;
$custom-light: #6c517e;
$custom-dark: #000000;
JSON
{
  "hex": "#30104c",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 272,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26059,
    "c": 0.10511,
    "h": 304.3
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#30104C
secondary
#598632
accent
#E8408E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30104C

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

Preview Lab → · Contrast checker → · Palette generator →

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