#30188F#30188F

#30188F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.178 H 280.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#30188F
RGBrgb(48, 24, 143)
HSLhsl(252, 71%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(66.4%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.07, 44.69, -60.59)
CIE-LCHlch(21.07, 75.29, 306.41°)
OKLaboklab(33.98% 0.0323 -0.1749)
OKLCHoklch(33.98% 0.178 280.5)
XYZxyz(6.5019, 3.2643, 26.2687)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30188F #778F18
analogous
#183B8F #30188F #6B188F
triadic
#30188F #8F3018 #188F30
tetradic
#30188F #8F183B #778F18 #188F6B
square
#30188F #8F183B #778F18 #188F6B
split-complementary
#30188F #8F6B18 #3B8F18
monochromatic
#0D0626 #1E0F5B #30188F #4221C3 #6242DF

Accessibility & contrast

On white

12.70
#30188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#30188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30188F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30188F#FFFFFF#000000##FFFFFF
##30188F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #30188f;
/* rgb */ color: rgb(48, 24, 143);
/* oklch */ color: oklch(34.0% 0.178 280.5);
Tailwind
colors: {
  custom: {
    50: '#775ab1',
    500: '#30188f',
    950: '#000000',
  },
}
SCSS
$custom: #30188f;
$custom-light: #775ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#30188f",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 252.101,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33979,
    "c": 0.17784,
    "h": 280.5
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#30188F
secondary
#A7C043
accent
#EE3ACA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #30188F

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

Preview Lab → · Contrast checker → · Palette generator →

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