#30168F#30168F

#30168F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.179 H 280.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#30168F
RGBrgb(48, 22, 143)
HSLhsl(253, 73%, 32%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(66.4%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.77, 45.58, -61.09)
CIE-LCHlch(20.77, 76.22, 306.73°)
OKLaboklab(33.77% 0.0333 -0.1763)
OKLCHoklch(33.77% 0.179 280.7)
XYZxyz(6.4622, 3.1849, 26.2555)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30168F #758F16
analogous
#16388F #30168F #6D168F
triadic
#30168F #8F3016 #168F30
tetradic
#30168F #8F1638 #758F16 #168F6D
square
#30168F #8F1638 #758F16 #168F6D
split-complementary
#30168F #8F6D16 #388F16
monochromatic
#0C0625 #1E0E5A #30168F #421EC4 #613EE1

Accessibility & contrast

On white

12.83
#30168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#30168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30168F
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30168F#FFFFFF#000000##FFFFFF
##30168F1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #30168f;
/* rgb */ color: rgb(48, 22, 143);
/* oklch */ color: oklch(33.8% 0.179 280.7);
Tailwind
colors: {
  custom: {
    50: '#7759b1',
    500: '#30168f',
    950: '#000000',
  },
}
SCSS
$custom: #30168f;
$custom-light: #7759b1;
$custom-dark: #000000;
JSON
{
  "hex": "#30168f",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 252.893,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3377,
    "c": 0.17942,
    "h": 280.7
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#30168F
secondary
#A5C13F
accent
#F038C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30168F

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

Preview Lab → · Contrast checker → · Palette generator →

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