#30124C#30124C

#30124C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.102 H 303.8°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#30124C
RGBrgb(48, 18, 76)
HSLhsl(271, 62%, 18%)
HSVhsv(271, 76%, 30%)
CMYKcmyk(36.8%, 76.3%, 0%, 70.2%)
CIE-LABlab(13.13, 27.76, -29.89)
CIE-LCHlch(13.13, 40.80, 312.88°)
OKLaboklab(26.33% 0.0568 -0.085)
OKLCHoklch(26.33% 0.102 303.8)
XYZxyz(2.7394, 1.5828, 6.9973)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30124C #2E4C12
analogous
#13124C #30124C #4C124B
triadic
#30124C #4C3012 #124C30
tetradic
#30124C #4C1312 #2E4C12 #124B4C
square
#30124C #4C1312 #2E4C12 #124B4C
split-complementary
#30124C #4B4C12 #124C13
monochromatic
#100619 #11061B #30124C #4F1E7D #6F29AF

Accessibility & contrast

On white

15.95
#30124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#30124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30124C
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30124C#FFFFFF#000000##FFFFFF
##30124C1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#2B1F2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30124c;
/* rgb */ color: rgb(48, 18, 76);
/* oklch */ color: oklch(26.3% 0.102 303.8);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#30124c',
    950: '#000000',
  },
}
SCSS
$custom: #30124c;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#30124c",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 271.034,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26334,
    "c": 0.10225,
    "h": 303.8
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#30124C
secondary
#5C8535
accent
#E54391
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #30124C

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

Preview Lab → · Contrast checker → · Palette generator →

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