#30126A#30126A

#30126A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.139 H 290.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#30126A
RGBrgb(48, 18, 106)
HSLhsl(260, 71%, 24%)
HSVhsv(260, 83%, 42%)
CMYKcmyk(54.7%, 83%, 0%, 58.4%)
CIE-LABlab(16.01, 36.46, -45.33)
CIE-LCHlch(16.01, 58.18, 308.81°)
OKLaboklab(29.25% 0.0487 -0.1303)
OKLCHoklch(29.25% 0.139 290.5)
XYZxyz(4.0360, 2.1014, 13.8258)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30126A #4C6A12
analogous
#12206A #30126A #5C126A
triadic
#30126A #6A3012 #126A30
tetradic
#30126A #6A1220 #4C6A12 #126A5C
square
#30126A #6A1220 #4C6A12 #126A5C
split-complementary
#30126A #6A5C12 #206A12
monochromatic
#0C041A #180936 #30126A #481B9E #5F24D3

Accessibility & contrast

On white

14.78
#30126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#30126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30126A
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30126A#FFFFFF#000000##FFFFFF
##30126A1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#1B2B3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #30126a;
/* rgb */ color: rgb(48, 18, 106);
/* oklch */ color: oklch(29.3% 0.139 290.5);
Tailwind
colors: {
  custom: {
    50: '#705496',
    500: '#30126a',
    950: '#000000',
  },
}
SCSS
$custom: #30126a;
$custom-light: #705496;
$custom-dark: #000000;
JSON
{
  "hex": "#30126a",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 260.455,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29254,
    "c": 0.13913,
    "h": 290.5
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#30126A
secondary
#7DA236
accent
#EE3AB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30126A

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

Preview Lab → · Contrast checker → · Palette generator →

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