#30166E#30166E

#30166E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.140 H 288.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#30166E
RGBrgb(48, 22, 110)
HSLhsl(258, 67%, 26%)
HSVhsv(258, 80%, 43%)
CMYKcmyk(56.4%, 80%, 0%, 56.9%)
CIE-LABlab(17.12, 35.67, -46.12)
CIE-LCHlch(17.12, 58.30, 307.72°)
OKLaboklab(30.15% 0.0443 -0.1326)
OKLCHoklch(30.15% 0.14 288.5)
XYZxyz(4.3195, 2.3278, 14.9705)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30166E #546E16
analogous
#16286E #30166E #5C166E
triadic
#30166E #6E3016 #166E30
tetradic
#30166E #6E1628 #546E16 #166E5C
square
#30166E #6E1628 #546E16 #166E5C
split-complementary
#30166E #6E5C16 #286E16
monochromatic
#0B051A #1A0C3B #30166E #4620A1 #5D2AD4

Accessibility & contrast

On white

14.33
#30166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#30166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30166E
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30166E#FFFFFF#000000##FFFFFF
##30166E1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#172F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #30166e;
/* rgb */ color: rgb(48, 22, 110);
/* oklch */ color: oklch(30.2% 0.140 288.5);
Tailwind
colors: {
  custom: {
    50: '#705798',
    500: '#30166e',
    950: '#000000',
  },
}
SCSS
$custom: #30166e;
$custom-light: #705798;
$custom-dark: #000000;
JSON
{
  "hex": "#30166e",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 257.727,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30155,
    "c": 0.13984,
    "h": 288.5
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#30166E
secondary
#85A43C
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #30166E

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

Preview Lab → · Contrast checker → · Palette generator →

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