#30166B#30166B

#30166B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.136 H 289.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#30166B
RGBrgb(48, 22, 107)
HSLhsl(258, 66%, 25%)
HSVhsv(258, 79%, 42%)
CMYKcmyk(55.1%, 79.4%, 0%, 58%)
CIE-LABlab(16.81, 34.75, -44.67)
CIE-LCHlch(16.81, 56.60, 307.88°)
OKLaboklab(29.85% 0.0452 -0.1284)
OKLCHoklch(29.85% 0.136 289.4)
XYZxyz(4.1589, 2.2635, 14.1248)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166B #516B16
analogous
#16266B #30166B #5A166B
triadic
#30166B #6B3016 #166B30
tetradic
#30166B #6B1626 #516B16 #166B5A
square
#30166B #6B1626 #516B16 #166B5A
split-complementary
#30166B #6B5A16 #266B16
monochromatic
#0B0519 #190C38 #30166B #47209E #5E2BD1

Accessibility & contrast

On white

14.45
#30166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#30166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30166B
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166B#FFFFFF#000000##FFFFFF
##30166B1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#1A2E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #30166b;
/* rgb */ color: rgb(48, 22, 107);
/* oklch */ color: oklch(29.8% 0.136 289.4);
Tailwind
colors: {
  custom: {
    50: '#705696',
    500: '#30166b',
    950: '#000000',
  },
}
SCSS
$custom: #30166b;
$custom-light: #705696;
$custom-dark: #000000;
JSON
{
  "hex": "#30166b",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 258.353,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29846,
    "c": 0.13611,
    "h": 289.4
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#30166B
secondary
#82A13B
accent
#E93FB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #30166B

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

Preview Lab → · Contrast checker → · Palette generator →

#30166B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva