#3111B4#3111B4

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

Color values

HEX#3111B4
RGBrgb(49, 17, 180)
HSLhsl(252, 83%, 39%)
HSVhsv(252, 91%, 71%)
CMYKcmyk(72.8%, 90.6%, 0%, 29.4%)
CIE-LABlab(24.79, 57.86, -76.97)
CIE-LCHlch(24.79, 96.29, 306.93°)
OKLaboklab(37.83% 0.0232 -0.2223)
OKLCHoklch(37.83% 0.223 276)
XYZxyz(9.7026, 4.3482, 43.4991)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3111B4 #94B411
analogous
#1142B4 #3111B4 #8211B4
triadic
#3111B4 #B43111 #11B431
tetradic
#3111B4 #B41142 #94B411 #11B482
square
#3111B4 #B41142 #94B411 #11B482
split-complementary
#3111B4 #B48211 #42B411
monochromatic
#130644 #220C7C #3111B4 #4219E9 #7051EF

Accessibility & contrast

On white

11.23
#3111B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3111B4
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3111B4#FFFFFF#000000##FFFFFF
##3111B41.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.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: #3111b4;
/* rgb */ color: rgb(49, 17, 180);
/* oklch */ color: oklch(37.8% 0.223 276.0);
Tailwind
colors: {
  custom: {
    50: '#805acc',
    500: '#3111b4',
    950: '#000000',
  },
}
SCSS
$custom: #3111b4;
$custom-light: #805acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3111b4",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 180
  },
  "hsl": {
    "h": 251.779,
    "s": 82.741,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37831,
    "c": 0.22348,
    "h": 276
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#3111B4
secondary
#B7D050
accent
#F92FD1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #3111B4

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

Preview Lab → · Contrast checker → · Palette generator →

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