#30177E#30177E

#30177E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.158 H 284.1°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#30177E
RGBrgb(48, 23, 126)
HSLhsl(255, 69%, 29%)
HSVhsv(255, 82%, 49%)
CMYKcmyk(61.9%, 81.7%, 0%, 50.6%)
CIE-LABlab(19.00, 40.03, -53.32)
CIE-LCHlch(19.00, 66.67, 306.90°)
OKLaboklab(31.98% 0.0385 -0.1537)
OKLCHoklch(31.98% 0.158 284.1)
XYZxyz(5.2901, 2.7472, 19.9861)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30177E #657E17
analogous
#17327E #30177E #64177E
triadic
#30177E #7E3017 #177E30
tetradic
#30177E #7E1732 #657E17 #177E64
square
#30177E #7E1732 #657E17 #177E64
split-complementary
#30177E #7E6417 #327E17
monochromatic
#0A051A #1C0E4A #30177E #4420B2 #5D35DA

Accessibility & contrast

On white

13.55
#30177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30177E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30177E#FFFFFF#000000##FFFFFF
##30177E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30177e;
/* rgb */ color: rgb(48, 23, 126);
/* oklch */ color: oklch(32.0% 0.158 284.1);
Tailwind
colors: {
  custom: {
    50: '#7358a4',
    500: '#30177e',
    950: '#000000',
  },
}
SCSS
$custom: #30177e;
$custom-light: #7358a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30177e",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 254.563,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3198,
    "c": 0.15843,
    "h": 284.1
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#30177E
secondary
#96B33E
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #30177E

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

Preview Lab → · Contrast checker → · Palette generator →

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