#30118E#30118E

#30118E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.182 H 281.4°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#30118E
RGBrgb(48, 17, 142)
HSLhsl(255, 79%, 31%)
HSVhsv(255, 88%, 56%)
CMYKcmyk(66.2%, 88%, 0%, 44.3%)
CIE-LABlab(19.97, 47.31, -61.79)
CIE-LCHlch(19.97, 77.82, 307.44°)
OKLaboklab(33.19% 0.0358 -0.1783)
OKLCHoklch(33.19% 0.182 281.4)
XYZxyz(6.3003, 2.9818, 25.8295)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30118E #6F8E11
analogous
#11308E #30118E #6E118E
triadic
#30118E #8E3011 #118E30
tetradic
#30118E #8E1130 #6F8E11 #118E6E
square
#30118E #8E1130 #6F8E11 #118E6E
split-complementary
#30118E #8E6E11 #308E11
monochromatic
#0B0421 #1E0A57 #30118E #4218C5 #5F33E7

Accessibility & contrast

On white

13.15
#30118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#30118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30118E
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30118E#FFFFFF#000000##FFFFFF
##30118E1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003A53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #30118e;
/* rgb */ color: rgb(48, 17, 142);
/* oklch */ color: oklch(33.2% 0.182 281.4);
Tailwind
colors: {
  custom: {
    50: '#7757b0',
    500: '#30118e',
    950: '#000000',
  },
}
SCSS
$custom: #30118e;
$custom-light: #7757b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30118e",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 254.88,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.18182,
    "h": 281.4
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#30118E
secondary
#A0C238
accent
#F533C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #30118E

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

Preview Lab → · Contrast checker → · Palette generator →

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