#3018A1#3018A1

#3018A1 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.199 H 277.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3018A1
RGBrgb(48, 24, 161)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 63%)
CMYKcmyk(70.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.18, 50.02, -68.18)
CIE-LCHlch(23.18, 84.55, 306.26°)
OKLaboklab(36.05% 0.0264 -0.1969)
OKLCHoklch(36.05% 0.199 277.6)
XYZxyz(7.9765, 3.8541, 34.0349)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3018A1 #89A118
analogous
#1845A1 #3018A1 #7518A1
triadic
#3018A1 #A13018 #18A130
tetradic
#3018A1 #A11845 #89A118 #18A175
square
#3018A1 #A11845 #89A118 #18A175
split-complementary
#3018A1 #A17518 #45A118
monochromatic
#100836 #20106C #3018A1 #4020D6 #694FE5

Accessibility & contrast

On white

11.86
#3018A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3018A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3018A1
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3018A1#FFFFFF#000000##FFFFFF
##3018A11.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3018a1;
/* rgb */ color: rgb(48, 24, 161);
/* oklch */ color: oklch(36.0% 0.199 277.6);
Tailwind
colors: {
  custom: {
    50: '#7b5bbe',
    500: '#3018a1',
    950: '#000000',
  },
}
SCSS
$custom: #3018a1;
$custom-light: #7b5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3018a1",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 250.511,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.19869,
    "h": 277.6
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#3018A1
secondary
#B2C74E
accent
#F137D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3018A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3018A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva