#30174B#30174B

#30174B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.093 H 302.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#30174B
RGBrgb(48, 23, 75)
HSLhsl(269, 53%, 19%)
HSVhsv(269, 69%, 29%)
CMYKcmyk(36%, 69.3%, 0%, 70.6%)
CIE-LABlab(14.11, 24.54, -27.61)
CIE-LCHlch(14.11, 36.94, 311.63°)
OKLaboklab(27.02% 0.0504 -0.0783)
OKLCHoklch(27.02% 0.093 302.7)
XYZxyz(2.7950, 1.7492, 6.8456)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30174B #324B17
analogous
#17184B #30174B #4A174B
triadic
#30174B #4B3017 #174B30
tetradic
#30174B #4B1718 #324B17 #174B4A
square
#30174B #4B1718 #324B17 #174B4A
split-complementary
#30174B #4B4A17 #184B17
monochromatic
#0F0717 #12091C #30174B #4E257A #6C34A9

Accessibility & contrast

On white

15.56
#30174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#30174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30174B
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30174B#FFFFFF#000000##FFFFFF
##30174B1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#07244A
Tritanopia (blue-blind)
#2B222E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #30174b;
/* rgb */ color: rgb(48, 23, 75);
/* oklch */ color: oklch(27.0% 0.093 302.7);
Tailwind
colors: {
  custom: {
    50: '#6b557e',
    500: '#30174b',
    950: '#000000',
  },
}
SCSS
$custom: #30174b;
$custom-light: #6b557e;
$custom-dark: #000000;
JSON
{
  "hex": "#30174b",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 268.846,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.09311,
    "h": 302.7
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#30174B
secondary
#60823C
accent
#DC4B97
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #30174B

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

Preview Lab → · Contrast checker → · Palette generator →

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