#30124F#30124F

#30124F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.106 H 302.1°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#30124F
RGBrgb(48, 18, 79)
HSLhsl(270, 63%, 19%)
HSVhsv(270, 77%, 31%)
CMYKcmyk(39.2%, 77.2%, 0%, 69%)
CIE-LABlab(13.38, 28.61, -31.54)
CIE-LCHlch(13.38, 42.58, 312.21°)
OKLaboklab(26.6% 0.0563 -0.0898)
OKLCHoklch(26.6% 0.106 302.1)
XYZxyz(2.8462, 1.6255, 7.5594)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30124F #314F12
analogous
#12134F #30124F #4F124F
triadic
#30124F #4F3012 #124F30
tetradic
#30124F #4F1213 #314F12 #124F4F
square
#30124F #4F1213 #314F12 #124F4F
split-complementary
#30124F #4F4F12 #134F12
monochromatic
#0F0619 #12071D #30124F #4E1D81 #6D29B3

Accessibility & contrast

On white

15.85
#30124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#30124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30124F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30124F#FFFFFF#000000##FFFFFF
##30124F1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2A212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30124f;
/* rgb */ color: rgb(48, 18, 79);
/* oklch */ color: oklch(26.6% 0.106 302.1);
Tailwind
colors: {
  custom: {
    50: '#6c5381',
    500: '#30124f',
    950: '#000000',
  },
}
SCSS
$custom: #30124f;
$custom-light: #6c5381;
$custom-dark: #000000;
JSON
{
  "hex": "#30124f",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 269.508,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.266,
    "c": 0.10601,
    "h": 302.1
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#30124F
secondary
#5F8835
accent
#E64295
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30124F

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

Preview Lab → · Contrast checker → · Palette generator →

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