#30177F#30177F

#30177F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 283.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#30177F
RGBrgb(48, 23, 127)
HSLhsl(254, 69%, 29%)
HSVhsv(254, 82%, 50%)
CMYKcmyk(62.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(19.11, 40.34, -53.77)
CIE-LCHlch(19.11, 67.22, 306.88°)
OKLaboklab(32.09% 0.0382 -0.155)
OKLCHoklch(32.09% 0.16 283.8)
XYZxyz(5.3549, 2.7731, 20.3276)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177F #667F17
analogous
#17327F #30177F #64177F
triadic
#30177F #7F3017 #177F30
tetradic
#30177F #7F1732 #667F17 #177F64
square
#30177F #7F1732 #667F17 #177F64
split-complementary
#30177F #7F6417 #327F17
monochromatic
#0A051A #1C0E4B #30177F #4420B3 #5D36DB

Accessibility & contrast

On white

13.51
#30177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#30177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30177F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177F#FFFFFF#000000##FFFFFF
##30177F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30177f;
/* rgb */ color: rgb(48, 23, 127);
/* oklch */ color: oklch(32.1% 0.160 283.8);
Tailwind
colors: {
  custom: {
    50: '#7458a5',
    500: '#30177f',
    950: '#000000',
  },
}
SCSS
$custom: #30177f;
$custom-light: #7458a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30177f",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 254.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.15964,
    "h": 283.8
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#30177F
secondary
#97B43E
accent
#EC3CC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177F

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

Preview Lab → · Contrast checker → · Palette generator →

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