#30164F#30164F

#30164F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.100 H 300.9°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#30164F
RGBrgb(48, 22, 79)
HSLhsl(267, 56%, 20%)
HSVhsv(267, 72%, 31%)
CMYKcmyk(39.2%, 72.2%, 0%, 69%)
CIE-LABlab(14.21, 26.32, -30.20)
CIE-LCHlch(14.21, 40.05, 311.07°)
OKLaboklab(27.19% 0.0513 -0.0859)
OKLCHoklch(27.19% 0.1 300.9)
XYZxyz(2.9168, 1.7667, 7.5830)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30164F #354F16
analogous
#16194F #30164F #4D164F
triadic
#30164F #4F3016 #164F30
tetradic
#30164F #4F1619 #354F16 #164F4D
square
#30164F #4F1619 #354F16 #164F4D
split-complementary
#30164F #4F4D16 #194F16
monochromatic
#0F0718 #13091F #30164F #4D237F #6A31AF

Accessibility & contrast

On white

15.52
#30164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#30164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30164F
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30164F#FFFFFF#000000##FFFFFF
##30164F1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00244E
Tritanopia (blue-blind)
#292330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30164f;
/* rgb */ color: rgb(48, 22, 79);
/* oklch */ color: oklch(27.2% 0.100 300.9);
Tailwind
colors: {
  custom: {
    50: '#6b5581',
    500: '#30164f',
    950: '#000000',
  },
}
SCSS
$custom: #30164f;
$custom-light: #6b5581;
$custom-dark: #000000;
JSON
{
  "hex": "#30164f",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 267.368,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27192,
    "c": 0.10006,
    "h": 300.9
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#30164F
secondary
#64863A
accent
#E0489B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30164F

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

Preview Lab → · Contrast checker → · Palette generator →

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