#30155F#30155F

#30155F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.122 H 293.8°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#30155F
RGBrgb(48, 21, 95)
HSLhsl(262, 64%, 23%)
HSVhsv(262, 78%, 37%)
CMYKcmyk(49.5%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.44, 31.66, -39.00)
CIE-LCHlch(15.44, 50.23, 309.06°)
OKLaboklab(28.52% 0.0494 -0.1118)
OKLCHoklch(28.52% 0.122 293.8)
XYZxyz(3.5521, 1.9908, 11.0214)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30155F #445F15
analogous
#151F5F #30155F #55155F
triadic
#30155F #5F3015 #155F30
tetradic
#30155F #5F151F #445F15 #155F55
square
#30155F #5F151F #445F15 #155F55
split-complementary
#30155F #5F5515 #1F5F15
monochromatic
#0D0619 #170A2D #30155F #492091 #632BC3

Accessibility & contrast

On white

15.02
#30155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#30155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30155F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30155F#FFFFFF#000000##FFFFFF
##30155F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#222838
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #30155f;
/* rgb */ color: rgb(48, 21, 95);
/* oklch */ color: oklch(28.5% 0.122 293.8);
Tailwind
colors: {
  custom: {
    50: '#6e558d',
    500: '#30155f',
    950: '#000000',
  },
}
SCSS
$custom: #30155f;
$custom-light: #6e558d;
$custom-dark: #000000;
JSON
{
  "hex": "#30155f",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 261.892,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28515,
    "c": 0.12221,
    "h": 293.8
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#30155F
secondary
#74963A
accent
#E741AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #30155F

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

Preview Lab → · Contrast checker → · Palette generator →

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