#3015B4#3015B4

#3015B4 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.0% C 0.222 H 275.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3015B4
RGBrgb(48, 21, 180)
HSLhsl(250, 79%, 39%)
HSVhsv(250, 88%, 71%)
CMYKcmyk(73.3%, 88.3%, 0%, 29.4%)
CIE-LABlab(25.13, 56.54, -76.40)
CIE-LCHlch(25.13, 95.05, 306.50°)
OKLaboklab(38.04% 0.0209 -0.2207)
OKLCHoklch(38.04% 0.222 275.4)
XYZxyz(9.7226, 4.4590, 43.5195)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3015B4 #99B415
analogous
#1549B4 #3015B4 #8015B4
triadic
#3015B4 #B43015 #15B430
tetradic
#3015B4 #B41549 #99B415 #15B480
square
#3015B4 #B41549 #99B415 #15B480
split-complementary
#3015B4 #B48015 #49B415
monochromatic
#130846 #210F7D #3015B4 #4221E5 #7158EC

Accessibility & contrast

On white

11.10
#3015B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3015B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3015B4
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3015B4#FFFFFF#000000##FFFFFF
##3015B41.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3015b4;
/* rgb */ color: rgb(48, 21, 180);
/* oklch */ color: oklch(38.0% 0.222 275.4);
Tailwind
colors: {
  custom: {
    50: '#7f5ccc',
    500: '#3015b4',
    950: '#000000',
  },
}
SCSS
$custom: #3015b4;
$custom-light: #7f5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3015b4",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 250.189,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.22171,
    "h": 275.4
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#3015B4
secondary
#BACF56
accent
#F632D4
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3015B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3015B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva