#30165C#30165C

#30165C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.117 H 294.8°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#30165C
RGBrgb(48, 22, 92)
HSLhsl(262, 61%, 22%)
HSVhsv(262, 76%, 36%)
CMYKcmyk(47.8%, 76.1%, 0%, 63.9%)
CIE-LABlab(15.35, 30.20, -37.14)
CIE-LCHlch(15.35, 47.86, 309.11°)
OKLaboklab(28.37% 0.0491 -0.1063)
OKLCHoklch(28.37% 0.117 294.8)
XYZxyz(3.4371, 1.9748, 10.3232)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30165C #425C16
analogous
#161F5C #30165C #53165C
triadic
#30165C #5C3016 #165C30
tetradic
#30165C #5C161F #425C16 #165C53
square
#30165C #5C161F #425C16 #165C53
split-complementary
#30165C #5C5316 #1F5C16
monochromatic
#0D0619 #160A2B #30165C #4A228D #642EBF

Accessibility & contrast

On white

15.05
#30165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#30165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30165C
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30165C#FFFFFF#000000##FFFFFF
##30165C1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#242837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #30165c;
/* rgb */ color: rgb(48, 22, 92);
/* oklch */ color: oklch(28.4% 0.117 294.8);
Tailwind
colors: {
  custom: {
    50: '#6d568b',
    500: '#30165c',
    950: '#000000',
  },
}
SCSS
$custom: #30165c;
$custom-light: #6d568b;
$custom-dark: #000000;
JSON
{
  "hex": "#30165c",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 262.286,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28367,
    "c": 0.11708,
    "h": 294.8
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#30165C
secondary
#72933B
accent
#E543A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #30165C

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

Preview Lab → · Contrast checker → · Palette generator →

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