#3012B4#3012B4

#3012B4 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.8% C 0.223 H 275.5°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#3012B4
RGBrgb(48, 18, 180)
HSLhsl(251, 82%, 39%)
HSVhsv(251, 90%, 71%)
CMYKcmyk(73.3%, 90%, 0%, 29.4%)
CIE-LABlab(24.81, 57.51, -76.94)
CIE-LCHlch(24.81, 96.05, 306.78°)
OKLaboklab(37.83% 0.0216 -0.2222)
OKLCHoklch(37.83% 0.223 275.5)
XYZxyz(9.6707, 4.3553, 43.5022)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3012B4 #96B412
analogous
#1245B4 #3012B4 #8112B4
triadic
#3012B4 #B43012 #12B430
tetradic
#3012B4 #B41245 #96B412 #12B481
square
#3012B4 #B41245 #96B412 #12B481
split-complementary
#3012B4 #B48112 #45B412
monochromatic
#120745 #210C7C #3012B4 #411BE8 #6F53EE

Accessibility & contrast

On white

11.22
#3012B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3012B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3012B4
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3012B4#FFFFFF#000000##FFFFFF
##3012B41.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3012b4;
/* rgb */ color: rgb(48, 18, 180);
/* oklch */ color: oklch(37.8% 0.223 275.5);
Tailwind
colors: {
  custom: {
    50: '#7f5bcc',
    500: '#3012b4',
    950: '#000000',
  },
}
SCSS
$custom: #3012b4;
$custom-light: #7f5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3012b4",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 180
  },
  "hsl": {
    "h": 251.111,
    "s": 81.818,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37826,
    "c": 0.22325,
    "h": 275.5
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#3012B4
secondary
#B9D052
accent
#F830D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3012B4

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

Preview Lab → · Contrast checker → · Palette generator →

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