#4118B4#4118B4

#4118B4 is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.6% C 0.216 H 282.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4118B4
RGBrgb(65, 24, 180)
HSLhsl(256, 76%, 40%)
HSVhsv(256, 87%, 71%)
CMYKcmyk(63.9%, 86.7%, 0%, 29.4%)
CIE-LABlab(26.94, 56.67, -73.37)
CIE-LCHlch(26.94, 92.70, 307.68°)
OKLaboklab(39.63% 0.0458 -0.2116)
OKLCHoklch(39.63% 0.217 282.2)
XYZxyz(10.7422, 5.0716, 43.5840)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4118B4 #8BB418
analogous
#183DB4 #4118B4 #8F18B4
triadic
#4118B4 #B44118 #18B441
tetradic
#4118B4 #B4183D #8BB418 #18B48F
square
#4118B4 #B4183D #8BB418 #18B48F
split-complementary
#4118B4 #B48F18 #3DB418
monochromatic
#1A0A48 #2D117E #4118B4 #5827E2 #825DE9

Accessibility & contrast

On white

10.42
#4118B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4118B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4118B4
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4118B4#FFFFFF#000000##FFFFFF
##4118B41.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4118b4;
/* rgb */ color: rgb(65, 24, 180);
/* oklch */ color: oklch(39.6% 0.216 282.2);
Tailwind
colors: {
  custom: {
    50: '#865ecc',
    500: '#4118b4',
    950: '#000000',
  },
}
SCSS
$custom: #4118b4;
$custom-light: #865ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4118b4",
  "rgb": {
    "r": 65,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 255.769,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.39633,
    "c": 0.2165,
    "h": 282.2
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#4118B4
secondary
#AFCD5B
accent
#F335C1
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4118B4

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

Preview Lab → · Contrast checker → · Palette generator →

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