#30126F#30126F

#30126F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.145 H 288.9°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#30126F
RGBrgb(48, 18, 111)
HSLhsl(259, 72%, 25%)
HSVhsv(259, 84%, 44%)
CMYKcmyk(56.8%, 83.8%, 0%, 56.5%)
CIE-LABlab(16.55, 37.93, -47.72)
CIE-LCHlch(16.55, 60.96, 308.48°)
OKLaboklab(29.79% 0.047 -0.1373)
OKLCHoklch(29.79% 0.145 288.9)
XYZxyz(4.3036, 2.2085, 15.2354)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30126F #516F12
analogous
#12226F #30126F #5E126F
triadic
#30126F #6F3012 #126F30
tetradic
#30126F #6F1222 #516F12 #126F5E
square
#30126F #6F1222 #516F12 #126F5E
split-complementary
#30126F #6F5E12 #226F12
monochromatic
#0B041A #19093A #30126F #471BA4 #5E23D8

Accessibility & contrast

On white

14.57
#30126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#30126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30126F
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30126F#FFFFFF#000000##FFFFFF
##30126F1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#162D41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #30126f;
/* rgb */ color: rgb(48, 18, 111);
/* oklch */ color: oklch(29.8% 0.145 288.9);
Tailwind
colors: {
  custom: {
    50: '#715599',
    500: '#30126f',
    950: '#000000',
  },
}
SCSS
$custom: #30126f;
$custom-light: #715599;
$custom-dark: #000000;
JSON
{
  "hex": "#30126f",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 259.355,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29786,
    "c": 0.1451,
    "h": 288.9
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#30126F
secondary
#82A637
accent
#EF39B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30126F

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

Preview Lab → · Contrast checker → · Palette generator →

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