#30125C#30125C

#30125C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.122 H 295.8°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#30125C
RGBrgb(48, 18, 92)
HSLhsl(264, 67%, 22%)
HSVhsv(264, 80%, 36%)
CMYKcmyk(47.8%, 80.4%, 0%, 63.9%)
CIE-LABlab(14.59, 32.36, -38.39)
CIE-LCHlch(14.59, 50.21, 310.13°)
OKLaboklab(27.83% 0.0532 -0.1099)
OKLCHoklch(27.83% 0.122 295.8)
XYZxyz(3.3665, 1.8336, 10.2997)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30125C #3E5C12
analogous
#12195C #30125C #55125C
triadic
#30125C #5C3012 #125C30
tetradic
#30125C #5C1219 #3E5C12 #125C55
square
#30125C #5C1219 #3E5C12 #125C55
split-complementary
#30125C #5C5512 #195C12
monochromatic
#0D051A #150829 #30125C #4B1C8F #6526C2

Accessibility & contrast

On white

15.36
#30125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#30125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30125C
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30125C#FFFFFF#000000##FFFFFF
##30125C1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#242636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #30125c;
/* rgb */ color: rgb(48, 18, 92);
/* oklch */ color: oklch(27.8% 0.122 295.8);
Tailwind
colors: {
  custom: {
    50: '#6e538b',
    500: '#30125c',
    950: '#000000',
  },
}
SCSS
$custom: #30125c;
$custom-light: #6e538b;
$custom-dark: #000000;
JSON
{
  "hex": "#30125c",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 264.324,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.12213,
    "h": 295.8
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#30125C
secondary
#6E9435
accent
#EA3EA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30125C

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

Preview Lab → · Contrast checker → · Palette generator →

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