#30197E#30197E

#30197E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.157 H 283.7°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#30197E
RGBrgb(48, 25, 126)
HSLhsl(254, 67%, 30%)
HSVhsv(254, 80%, 49%)
CMYKcmyk(61.9%, 80.2%, 0%, 50.6%)
CIE-LABlab(19.35, 39.03, -52.74)
CIE-LCHlch(19.35, 65.62, 306.50°)
OKLaboklab(32.22% 0.0372 -0.152)
OKLCHoklch(32.22% 0.157 283.7)
XYZxyz(5.3313, 2.8296, 19.9999)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197E #677E19
analogous
#19357E #30197E #62197E
triadic
#30197E #7E3019 #197E30
tetradic
#30197E #7E1935 #677E19 #197E62
square
#30197E #7E1935 #677E19 #197E62
split-complementary
#30197E #7E6219 #357E19
monochromatic
#0A051A #1D0F4B #30197E #4323B1 #5E3AD8

Accessibility & contrast

On white

13.41
#30197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#30197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30197E
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197E#FFFFFF#000000##FFFFFF
##30197E1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #30197e;
/* rgb */ color: rgb(48, 25, 126);
/* oklch */ color: oklch(32.2% 0.157 283.7);
Tailwind
colors: {
  custom: {
    50: '#7359a4',
    500: '#30197e',
    950: '#000000',
  },
}
SCSS
$custom: #30197e;
$custom-light: #7359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#30197e",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 253.663,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.15652,
    "h": 283.7
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#30197E
secondary
#98B241
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197E

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

Preview Lab → · Contrast checker → · Palette generator →

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