#30117E#30117E

#30117E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.164 H 284.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#30117E
RGBrgb(48, 17, 126)
HSLhsl(257, 76%, 28%)
HSVhsv(257, 87%, 49%)
CMYKcmyk(61.9%, 86.5%, 0%, 50.6%)
CIE-LABlab(18.08, 42.73, -54.84)
CIE-LCHlch(18.08, 69.53, 307.93°)
OKLaboklab(31.34% 0.042 -0.158)
OKLCHoklch(31.34% 0.164 284.9)
XYZxyz(5.1841, 2.5353, 19.9508)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30117E #5F7E11
analogous
#11287E #30117E #66117E
triadic
#30117E #7E3011 #117E30
tetradic
#30117E #7E1128 #5F7E11 #117E66
square
#30117E #7E1128 #5F7E11 #117E66
split-complementary
#30117E #7E6611 #287E11
monochromatic
#0A041B #1B0A48 #30117E #4518B4 #5D27E2

Accessibility & contrast

On white

13.93
#30117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30117E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30117E#FFFFFF#000000##FFFFFF
##30117E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #30117e;
/* rgb */ color: rgb(48, 17, 126);
/* oklch */ color: oklch(31.3% 0.164 284.9);
Tailwind
colors: {
  custom: {
    50: '#7455a5',
    500: '#30117e',
    950: '#000000',
  },
}
SCSS
$custom: #30117e;
$custom-light: #7455a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30117e",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 257.064,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31342,
    "c": 0.16354,
    "h": 284.9
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#30117E
secondary
#90B437
accent
#F335BD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30117E

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

Preview Lab → · Contrast checker → · Palette generator →

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