#3115B4#3115B4

#3115B4 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.1% C 0.221 H 275.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3115B4
RGBrgb(49, 21, 180)
HSLhsl(251, 79%, 39%)
HSVhsv(251, 88%, 71%)
CMYKcmyk(72.8%, 88.3%, 0%, 29.4%)
CIE-LABlab(25.21, 56.59, -76.27)
CIE-LCHlch(25.21, 94.98, 306.57°)
OKLaboklab(38.11% 0.0224 -0.2203)
OKLCHoklch(38.11% 0.221 275.8)
XYZxyz(9.7703, 4.4836, 43.5217)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3115B4 #98B415
analogous
#1549B4 #3115B4 #8115B4
triadic
#3115B4 #B43115 #15B431
tetradic
#3115B4 #B41549 #98B415 #15B481
square
#3115B4 #B41549 #98B415 #15B481
split-complementary
#3115B4 #B48115 #49B415
monochromatic
#130846 #220F7D #3115B4 #4421E5 #7258EC

Accessibility & contrast

On white

11.07
#3115B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3115B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3115B4
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3115B4#FFFFFF#000000##FFFFFF
##3115B41.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3115b4;
/* rgb */ color: rgb(49, 21, 180);
/* oklch */ color: oklch(38.1% 0.221 275.8);
Tailwind
colors: {
  custom: {
    50: '#805ccc',
    500: '#3115b4',
    950: '#000000',
  },
}
SCSS
$custom: #3115b4;
$custom-light: #805ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#3115b4",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 250.566,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38114,
    "c": 0.22146,
    "h": 275.8
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#3115B4
secondary
#B9CF56
accent
#F632D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3115B4

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

Preview Lab → · Contrast checker → · Palette generator →

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