#30117F#30117F

#30117F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.165 H 284.6°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#30117F
RGBrgb(48, 17, 127)
HSLhsl(257, 76%, 28%)
HSVhsv(257, 87%, 50%)
CMYKcmyk(62.2%, 86.6%, 0%, 50.2%)
CIE-LABlab(18.19, 43.02, -55.29)
CIE-LCHlch(18.19, 70.05, 307.89°)
OKLaboklab(31.46% 0.0416 -0.1593)
OKLCHoklch(31.46% 0.165 284.6)
XYZxyz(5.2490, 2.5612, 20.2923)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30117F #607F11
analogous
#11297F #30117F #67117F
triadic
#30117F #7F3011 #117F30
tetradic
#30117F #7F1129 #607F11 #117F67
square
#30117F #7F1129 #607F11 #117F67
split-complementary
#30117F #7F6711 #297F11
monochromatic
#0A041B #1C0A49 #30117F #4418B5 #5D28E2

Accessibility & contrast

On white

13.89
#30117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#30117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30117F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30117F#FFFFFF#000000##FFFFFF
##30117F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30117f;
/* rgb */ color: rgb(48, 17, 127);
/* oklch */ color: oklch(31.5% 0.165 284.6);
Tailwind
colors: {
  custom: {
    50: '#7455a5',
    500: '#30117f',
    950: '#000000',
  },
}
SCSS
$custom: #30117f;
$custom-light: #7455a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30117f",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 256.909,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31456,
    "c": 0.1647,
    "h": 284.6
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#30117F
secondary
#91B537
accent
#F335BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30117F

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

Preview Lab → · Contrast checker → · Palette generator →

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