#30104B#30104B

#30104B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.104 H 304.9°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#30104B
RGBrgb(48, 16, 75)
HSLhsl(273, 65%, 18%)
HSVhsv(273, 79%, 29%)
CMYKcmyk(36%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.65, 28.57, -29.97)
CIE-LCHlch(12.65, 41.40, 313.63°)
OKLaboklab(25.97% 0.0595 -0.0852)
OKLCHoklch(25.97% 0.104 304.9)
XYZxyz(2.6739, 1.5070, 6.8053)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30104B #2B4B10
analogous
#12104B #30104B #4B1048
triadic
#30104B #4B3010 #104B30
tetradic
#30104B #4B1210 #2B4B10 #10484B
square
#30104B #4B1210 #2B4B10 #10484B
split-complementary
#30104B #484B10 #104B12
monochromatic
#100519 #100519 #30104B #501B7D #7126B0

Accessibility & contrast

On white

16.14
#30104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30104B
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30104B#FFFFFF#000000##FFFFFF
##30104B1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30104b;
/* rgb */ color: rgb(48, 16, 75);
/* oklch */ color: oklch(26.0% 0.104 304.9);
Tailwind
colors: {
  custom: {
    50: '#6b517e',
    500: '#30104b',
    950: '#000000',
  },
}
SCSS
$custom: #30104b;
$custom-light: #6b517e;
$custom-dark: #000000;
JSON
{
  "hex": "#30104b",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 272.542,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2597,
    "c": 0.10389,
    "h": 304.9
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#30104B
secondary
#588532
accent
#E8408D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30104B

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

Preview Lab → · Contrast checker → · Palette generator →

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