#30195B#30195B

#30195B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.112 H 294.3°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#30195B
RGBrgb(48, 25, 91)
HSLhsl(261, 57%, 23%)
HSVhsv(261, 73%, 36%)
CMYKcmyk(47.3%, 72.5%, 0%, 64.3%)
CIE-LABlab(15.90, 28.14, -35.59)
CIE-LCHlch(15.90, 45.37, 308.33°)
OKLaboklab(28.73% 0.0459 -0.1018)
OKLCHoklch(28.73% 0.112 294.3)
XYZxyz(3.4544, 2.0789, 10.1148)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30195B #445B19
analogous
#19235B #30195B #51195B
triadic
#30195B #5B3019 #195B30
tetradic
#30195B #5B1923 #445B19 #195B51
square
#30195B #5B1923 #445B19 #195B51
split-complementary
#30195B #5B5119 #235B19
monochromatic
#0D0718 #170C2B #30195B #49268B #6333BB

Accessibility & contrast

On white

14.83
#30195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#30195B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30195B
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30195B#FFFFFF#000000##FFFFFF
##30195B1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#242937
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #30195b;
/* rgb */ color: rgb(48, 25, 91);
/* oklch */ color: oklch(28.7% 0.112 294.3);
Tailwind
colors: {
  custom: {
    50: '#6d578a',
    500: '#30195b',
    950: '#000000',
  },
}
SCSS
$custom: #30195b;
$custom-light: #6d578a;
$custom-dark: #000000;
JSON
{
  "hex": "#30195b",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 260.909,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.11162,
    "h": 294.3
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#30195B
secondary
#74913F
accent
#E048AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30195B

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

Preview Lab → · Contrast checker → · Palette generator →

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