#30104F#30104F

#30104F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.109 H 302.6°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#30104F
RGBrgb(48, 16, 79)
HSLhsl(270, 66%, 19%)
HSVhsv(270, 80%, 31%)
CMYKcmyk(39.2%, 79.7%, 0%, 69%)
CIE-LABlab(13.01, 29.67, -32.15)
CIE-LCHlch(13.01, 43.75, 312.71°)
OKLaboklab(26.33% 0.0586 -0.0916)
OKLCHoklch(26.33% 0.109 302.6)
XYZxyz(2.8152, 1.5635, 7.5491)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30104F #2F4F10
analogous
#10104F #30104F #4F104E
triadic
#30104F #4F3010 #104F30
tetradic
#30104F #4F1010 #2F4F10 #104E4F
square
#30104F #4F1010 #2F4F10 #104E4F
split-complementary
#30104F #4E4F10 #104F10
monochromatic
#0F0519 #11061C #30104F #4F1A82 #6E25B5

Accessibility & contrast

On white

16.00
#30104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#30104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30104F
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30104F#FFFFFF#000000##FFFFFF
##30104F1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2A1F2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30104f;
/* rgb */ color: rgb(48, 16, 79);
/* oklch */ color: oklch(26.3% 0.109 302.6);
Tailwind
colors: {
  custom: {
    50: '#6c5181',
    500: '#30104f',
    950: '#000000',
  },
}
SCSS
$custom: #30104f;
$custom-light: #6c5181;
$custom-dark: #000000;
JSON
{
  "hex": "#30104f",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 270.476,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26332,
    "c": 0.10876,
    "h": 302.6
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#30104F
secondary
#5D8932
accent
#E93F93
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30104F

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

Preview Lab → · Contrast checker → · Palette generator →

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