#30169E#30169E

#30169E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.197 H 278.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#30169E
RGBrgb(48, 22, 158)
HSLhsl(251, 76%, 35%)
HSVhsv(251, 86%, 62%)
CMYKcmyk(69.6%, 86.1%, 0%, 38%)
CIE-LABlab(22.55, 49.96, -67.39)
CIE-LCHlch(22.55, 83.89, 306.55°)
OKLaboklab(35.51% 0.0281 -0.1946)
OKLCHoklch(35.51% 0.197 278.2)
XYZxyz(7.6754, 3.6701, 32.6450)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30169E #849E16
analogous
#16409E #30169E #74169E
triadic
#30169E #9E3016 #169E30
tetradic
#30169E #9E1640 #849E16 #169E74
square
#30169E #9E1640 #849E16 #169E74
split-complementary
#30169E #9E7416 #409E16
monochromatic
#0F0733 #200F68 #30169E #401DD4 #6749E6

Accessibility & contrast

On white

12.11
#30169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#30169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30169E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30169E#FFFFFF#000000##FFFFFF
##30169E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30169e;
/* rgb */ color: rgb(48, 22, 158);
/* oklch */ color: oklch(35.5% 0.197 278.2);
Tailwind
colors: {
  custom: {
    50: '#7a5abc',
    500: '#30169e',
    950: '#000000',
  },
}
SCSS
$custom: #30169e;
$custom-light: #7a5abc;
$custom-dark: #000000;
JSON
{
  "hex": "#30169e",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 251.471,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35508,
    "c": 0.19665,
    "h": 278.2
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#30169E
secondary
#AFC749
accent
#F236CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #30169E

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

Preview Lab → · Contrast checker → · Palette generator →

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