#3012A0#3012A0

#3012A0 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.4% C 0.201 H 278.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3012A0
RGBrgb(48, 18, 160)
HSLhsl(253, 80%, 35%)
HSVhsv(253, 89%, 63%)
CMYKcmyk(70%, 88.8%, 0%, 37.3%)
CIE-LABlab(22.30, 52.01, -69.04)
CIE-LCHlch(22.30, 86.43, 306.99°)
OKLaboklab(35.41% 0.0287 -0.1993)
OKLCHoklch(35.41% 0.201 278.2)
XYZxyz(7.7783, 3.5984, 33.5355)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3012A0 #82A012
analogous
#123BA0 #3012A0 #7712A0
triadic
#3012A0 #A03012 #12A030
tetradic
#3012A0 #A0123B #82A012 #12A077
square
#3012A0 #A0123B #82A012 #12A077
split-complementary
#3012A0 #A07712 #3BA012
monochromatic
#0F0632 #1F0C69 #3012A0 #4118D7 #6643EA

Accessibility & contrast

On white

12.21
#3012A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3012A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3012A0
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3012A0#FFFFFF#000000##FFFFFF
##3012A01.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3012a0;
/* rgb */ color: rgb(48, 18, 160);
/* oklch */ color: oklch(35.4% 0.201 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b59be',
    500: '#3012a0',
    950: '#000000',
  },
}
SCSS
$custom: #3012a0;
$custom-light: #7b59be;
$custom-dark: #000000;
JSON
{
  "hex": "#3012a0",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 160
  },
  "hsl": {
    "h": 252.676,
    "s": 79.775,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35406,
    "c": 0.20137,
    "h": 278.2
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#3012A0
secondary
#AECA44
accent
#F632CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3012A0

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

Preview Lab → · Contrast checker → · Palette generator →

#3012A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva