#30167A#30167A

#30167A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.155 H 285.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#30167A
RGBrgb(48, 22, 122)
HSLhsl(256, 69%, 28%)
HSVhsv(256, 82%, 48%)
CMYKcmyk(60.7%, 82%, 0%, 52.2%)
CIE-LABlab(18.40, 39.31, -51.76)
CIE-LCHlch(18.40, 65.00, 307.21°)
OKLaboklab(31.43% 0.0405 -0.1491)
OKLCHoklch(31.43% 0.155 285.2)
XYZxyz(5.0176, 2.6070, 18.6474)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30167A #607A16
analogous
#162E7A #30167A #62167A
triadic
#30167A #7A3016 #167A30
tetradic
#30167A #7A162E #607A16 #167A62
square
#30167A #7A162E #607A16 #167A62
split-complementary
#30167A #7A6216 #2E7A16
monochromatic
#0A051A #1C0D46 #30167A #441FAE #5D31DA

Accessibility & contrast

On white

13.80
#30167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#30167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30167A
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30167A#FFFFFF#000000##FFFFFF
##30167A1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#063448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #30167a;
/* rgb */ color: rgb(48, 22, 122);
/* oklch */ color: oklch(31.4% 0.155 285.2);
Tailwind
colors: {
  custom: {
    50: '#7357a1',
    500: '#30167a',
    950: '#000000',
  },
}
SCSS
$custom: #30167a;
$custom-light: #7357a1;
$custom-dark: #000000;
JSON
{
  "hex": "#30167a",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 255.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.15453,
    "h": 285.2
  },
  "luminance": 0.02607
}

Semantic roles & 50–950 ramp

primary
#30167A
secondary
#91AF3D
accent
#EC3CBE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30167A

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

Preview Lab → · Contrast checker → · Palette generator →

#30167A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva