#30124A#30124A

#30124A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.100 H 305.0°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#30124A
RGBrgb(48, 18, 74)
HSLhsl(272, 61%, 18%)
HSVhsv(272, 76%, 29%)
CMYKcmyk(35.1%, 75.7%, 0%, 71%)
CIE-LABlab(12.96, 27.20, -28.79)
CIE-LCHlch(12.96, 39.61, 313.38°)
OKLaboklab(26.16% 0.0572 -0.0817)
OKLCHoklch(26.16% 0.1 305)
XYZxyz(2.6710, 1.5554, 6.6368)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30124A #2C4A12
analogous
#14124A #30124A #4A1248
triadic
#30124A #4A3012 #124A30
tetradic
#30124A #4A1412 #2C4A12 #12484A
square
#30124A #4A1412 #2C4A12 #12484A
split-complementary
#30124A #484A12 #124A14
monochromatic
#100619 #100619 #30124A #501E7B #702AAC

Accessibility & contrast

On white

16.02
#30124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#30124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30124A
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30124A#FFFFFF#000000##FFFFFF
##30124A1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#012149
Tritanopia (blue-blind)
#2B1F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #30124a;
/* rgb */ color: rgb(48, 18, 74);
/* oklch */ color: oklch(26.2% 0.100 305.0);
Tailwind
colors: {
  custom: {
    50: '#6b527d',
    500: '#30124a',
    950: '#000000',
  },
}
SCSS
$custom: #30124a;
$custom-light: #6b527d;
$custom-dark: #000000;
JSON
{
  "hex": "#30124a",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 272.143,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2616,
    "c": 0.09973,
    "h": 305
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#30124A
secondary
#598335
accent
#E4448E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #30124A

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

Preview Lab → · Contrast checker → · Palette generator →

#30124A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva