#30173F#30173F

#30173F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.077 H 311.0°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#30173F
RGBrgb(48, 23, 63)
HSLhsl(278, 47%, 17%)
HSVhsv(278, 63%, 25%)
CMYKcmyk(23.8%, 63.5%, 0%, 75.3%)
CIE-LABlab(13.23, 21.15, -20.66)
CIE-LCHlch(13.23, 29.56, 315.67°)
OKLaboklab(26.09% 0.0504 -0.0579)
OKLCHoklch(26.09% 0.077 311)
XYZxyz(2.4224, 1.6001, 4.8829)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30173F #263F17
analogous
#1C173F #30173F #3F173A
triadic
#30173F #3F3017 #173F30
tetradic
#30173F #3F1C17 #263F17 #173A3F
square
#30173F #3F1C17 #263F17 #173A3F
split-complementary
#30173F #3A3F17 #173F1C
monochromatic
#110816 #110816 #30173F #52276C #743899

Accessibility & contrast

On white

15.91
#30173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30173F
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30173F#FFFFFF#000000##FFFFFF
##30173F1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2140
Deuteranopia (green-blind)
#14223E
Tritanopia (blue-blind)
#2E1E28
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #30173f;
/* rgb */ color: rgb(48, 23, 63);
/* oklch */ color: oklch(26.1% 0.077 311.0);
Tailwind
colors: {
  custom: {
    50: '#6a5574',
    500: '#30173f',
    950: '#000000',
  },
}
SCSS
$custom: #30173f;
$custom-light: #6a5574;
$custom-dark: #000000;
JSON
{
  "hex": "#30173f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 277.5,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26092,
    "c": 0.07681,
    "h": 311
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#30173F
secondary
#52763C
accent
#D65283
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #30173F

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

Preview Lab → · Contrast checker → · Palette generator →

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