#30197B#30197B

#30197B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 284.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#30197B
RGBrgb(48, 25, 123)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 80%, 48%)
CMYKcmyk(61%, 79.7%, 0%, 51.8%)
CIE-LABlab(19.03, 38.10, -51.36)
CIE-LCHlch(19.03, 63.95, 306.57°)
OKLaboklab(31.9% 0.0381 -0.148)
OKLCHoklch(31.9% 0.153 284.4)
XYZxyz(5.1406, 2.7534, 18.9956)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30197B #647B19
analogous
#19337B #30197B #61197B
triadic
#30197B #7B3019 #197B30
tetradic
#30197B #7B1933 #647B19 #197B61
square
#30197B #7B1933 #647B19 #197B61
split-complementary
#30197B #7B6119 #337B19
monochromatic
#0A0519 #1C0F48 #30197B #4423AE #5D38D7

Accessibility & contrast

On white

13.54
#30197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#30197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30197B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30197B#FFFFFF#000000##FFFFFF
##30197B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#033549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #30197b;
/* rgb */ color: rgb(48, 25, 123);
/* oklch */ color: oklch(31.9% 0.153 284.4);
Tailwind
colors: {
  custom: {
    50: '#7359a2',
    500: '#30197b',
    950: '#000000',
  },
}
SCSS
$custom: #30197b;
$custom-light: #7359a2;
$custom-dark: #000000;
JSON
{
  "hex": "#30197b",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 254.082,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31901,
    "c": 0.15282,
    "h": 284.4
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#30197B
secondary
#95AF40
accent
#E93FC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #30197B

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

Preview Lab → · Contrast checker → · Palette generator →

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