#30173E#30173E

#30173E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.075 H 311.9°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#30173E
RGBrgb(48, 23, 62)
HSLhsl(278, 46%, 17%)
HSVhsv(278, 63%, 24%)
CMYKcmyk(22.6%, 62.9%, 0%, 75.7%)
CIE-LABlab(13.16, 20.88, -20.06)
CIE-LCHlch(13.16, 28.95, 316.14°)
OKLaboklab(26.02% 0.0504 -0.0562)
OKLCHoklch(26.02% 0.075 311.9)
XYZxyz(2.3947, 1.5890, 4.7371)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30173E #253E17
analogous
#1D173E #30173E #3E1739
triadic
#30173E #3E3017 #173E30
tetradic
#30173E #3E1D17 #253E17 #17393E
square
#30173E #3E1D17 #253E17 #17393E
split-complementary
#30173E #393E17 #173E1D
monochromatic
#110816 #110816 #30173E #53286B #753897

Accessibility & contrast

On white

15.94
#30173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#30173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30173E
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30173E#FFFFFF#000000##FFFFFF
##30173E1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C213F
Deuteranopia (green-blind)
#15223D
Tritanopia (blue-blind)
#2E1E27
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30173e;
/* rgb */ color: rgb(48, 23, 62);
/* oklch */ color: oklch(26.0% 0.075 311.9);
Tailwind
colors: {
  custom: {
    50: '#6a5573',
    500: '#30173e',
    950: '#000000',
  },
}
SCSS
$custom: #30173e;
$custom-light: #6a5573;
$custom-dark: #000000;
JSON
{
  "hex": "#30173e",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 278.462,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26021,
    "c": 0.07545,
    "h": 311.9
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#30173E
secondary
#50753C
accent
#D65281
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #30173E

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

Preview Lab → · Contrast checker → · Palette generator →

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