#30138E#30138E

#30138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.4% C 0.180 H 281.2°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#30138E
RGBrgb(48, 19, 142)
HSLhsl(254, 76%, 32%)
HSVhsv(254, 87%, 56%)
CMYKcmyk(66.2%, 86.6%, 0%, 44.3%)
CIE-LABlab(20.23, 46.54, -61.36)
CIE-LCHlch(20.23, 77.01, 307.18°)
OKLaboklab(33.37% 0.035 -0.1771)
OKLCHoklch(33.37% 0.18 281.2)
XYZxyz(6.3327, 3.0466, 25.8403)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30138E #718E13
analogous
#13348E #30138E #6E138E
triadic
#30138E #8E3013 #138E30
tetradic
#30138E #8E1334 #718E13 #138E6E
square
#30138E #8E1334 #718E13 #138E6E
split-complementary
#30138E #8E6E13 #348E13
monochromatic
#0C0522 #1E0C58 #30138E #421AC4 #6037E4

Accessibility & contrast

On white

13.05
#30138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#30138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30138E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30138E#FFFFFF#000000##FFFFFF
##30138E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #30138e;
/* rgb */ color: rgb(48, 19, 142);
/* oklch */ color: oklch(33.4% 0.180 281.2);
Tailwind
colors: {
  custom: {
    50: '#7757b0',
    500: '#30138e',
    950: '#000000',
  },
}
SCSS
$custom: #30138e;
$custom-light: #7757b0;
$custom-dark: #000000;
JSON
{
  "hex": "#30138e",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 254.146,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.18047,
    "h": 281.2
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#30138E
secondary
#A2C23B
accent
#F335C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #30138E

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

Preview Lab → · Contrast checker → · Palette generator →

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