#3118A0#3118A0

#3118A0 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.197 H 278.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#3118A0
RGBrgb(49, 24, 160)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 63%)
CMYKcmyk(69.4%, 85%, 0%, 37.3%)
CIE-LABlab(23.15, 49.80, -67.62)
CIE-LCHlch(23.15, 83.98, 306.37°)
OKLaboklab(36.01% 0.0282 -0.1953)
OKLCHoklch(36.01% 0.197 278.2)
XYZxyz(7.9364, 3.8436, 33.5745)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3118A0 #87A018
analogous
#1843A0 #3118A0 #7518A0
triadic
#3118A0 #A03118 #18A031
tetradic
#3118A0 #A01843 #87A018 #18A075
square
#3118A0 #A01843 #87A018 #18A075
split-complementary
#3118A0 #A07518 #43A018
monochromatic
#100836 #21106B #3118A0 #4120D5 #6A4EE4

Accessibility & contrast

On white

11.87
#3118A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3118A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3118A0
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3118A0#FFFFFF#000000##FFFFFF
##3118A01.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3118a0;
/* rgb */ color: rgb(49, 24, 160);
/* oklch */ color: oklch(36.0% 0.197 278.2);
Tailwind
colors: {
  custom: {
    50: '#7b5bbd',
    500: '#3118a0',
    950: '#000000',
  },
}
SCSS
$custom: #3118a0;
$custom-light: #7b5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3118a0",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 251.029,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36008,
    "c": 0.19732,
    "h": 278.2
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#3118A0
secondary
#B0C64D
accent
#F137CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3118A0

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

Preview Lab → · Contrast checker → · Palette generator →

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