#30165A#30165A

#30165A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.114 H 295.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#30165A
RGBrgb(48, 22, 90)
HSLhsl(263, 61%, 22%)
HSVhsv(263, 76%, 35%)
CMYKcmyk(46.7%, 75.6%, 0%, 64.7%)
CIE-LABlab(15.17, 29.59, -36.10)
CIE-LCHlch(15.17, 46.68, 309.34°)
OKLaboklab(28.18% 0.0495 -0.1032)
OKLCHoklch(28.18% 0.114 295.6)
XYZxyz(3.3508, 1.9403, 9.8688)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30165A #405A16
analogous
#161E5A #30165A #52165A
triadic
#30165A #5A3016 #165A30
tetradic
#30165A #5A161E #405A16 #165A52
square
#30165A #5A161E #405A16 #165A52
split-complementary
#30165A #5A5216 #1E5A16
monochromatic
#0D0619 #160A29 #30165A #4A228B #642EBC

Accessibility & contrast

On white

15.13
#30165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#30165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30165A
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30165A#FFFFFF#000000##FFFFFF
##30165A1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#252736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30165a;
/* rgb */ color: rgb(48, 22, 90);
/* oklch */ color: oklch(28.2% 0.114 295.6);
Tailwind
colors: {
  custom: {
    50: '#6d5589',
    500: '#30165a',
    950: '#000000',
  },
}
SCSS
$custom: #30165a;
$custom-light: #6d5589;
$custom-dark: #000000;
JSON
{
  "hex": "#30165a",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 262.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2818,
    "c": 0.11449,
    "h": 295.6
  },
  "luminance": 0.0194
}

Semantic roles & 50–950 ramp

primary
#30165A
secondary
#70913B
accent
#E444A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30165A

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

Preview Lab → · Contrast checker → · Palette generator →

#30165A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva