#30174E#30174E

#30174E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.097 H 301.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#30174E
RGBrgb(48, 23, 78)
HSLhsl(267, 54%, 20%)
HSVhsv(267, 71%, 31%)
CMYKcmyk(38.5%, 70.5%, 0%, 69.4%)
CIE-LABlab(14.35, 25.42, -29.29)
CIE-LCHlch(14.35, 38.78, 310.96°)
OKLaboklab(27.27% 0.0501 -0.0832)
OKLCHoklch(27.27% 0.097 301.1)
XYZxyz(2.9001, 1.7912, 7.3992)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30174E #354E17
analogous
#171A4E #30174E #4C174E
triadic
#30174E #4E3017 #174E30
tetradic
#30174E #4E171A #354E17 #174E4C
square
#30174E #4E171A #354E17 #174E4C
split-complementary
#30174E #4E4C17 #1A4E17
monochromatic
#0F0718 #13091F #30174E #4D257D #6A33AD

Accessibility & contrast

On white

15.46
#30174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#30174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30174E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30174E#FFFFFF#000000##FFFFFF
##30174E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#03244D
Tritanopia (blue-blind)
#2A2330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30174e;
/* rgb */ color: rgb(48, 23, 78);
/* oklch */ color: oklch(27.3% 0.097 301.1);
Tailwind
colors: {
  custom: {
    50: '#6b5680',
    500: '#30174e',
    950: '#000000',
  },
}
SCSS
$custom: #30174e;
$custom-light: #6b5680;
$custom-dark: #000000;
JSON
{
  "hex": "#30174e",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 267.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27267,
    "c": 0.09715,
    "h": 301.1
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#30174E
secondary
#64853C
accent
#DE4A9B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30174E

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

Preview Lab → · Contrast checker → · Palette generator →

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