#4117B4#4117B4

#4117B4 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.6% C 0.217 H 282.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4117B4
RGBrgb(65, 23, 180)
HSLhsl(256, 77%, 40%)
HSVhsv(256, 87%, 71%)
CMYKcmyk(63.9%, 87.2%, 0%, 29.4%)
CIE-LABlab(26.82, 57.01, -73.56)
CIE-LCHlch(26.82, 93.06, 307.78°)
OKLaboklab(39.56% 0.0462 -0.2121)
OKLCHoklch(39.56% 0.217 282.3)
XYZxyz(10.7220, 5.0311, 43.5773)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4117B4 #8AB417
analogous
#173BB4 #4117B4 #9017B4
triadic
#4117B4 #B44117 #17B441
tetradic
#4117B4 #B4173B #8AB417 #17B490
square
#4117B4 #B4173B #8AB417 #17B490
split-complementary
#4117B4 #B49017 #3BB417
monochromatic
#1A0947 #2D107E #4117B4 #5825E3 #825BEA

Accessibility & contrast

On white

10.47
#4117B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4117B4
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4117B4#FFFFFF#000000##FFFFFF
##4117B41.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4117b4;
/* rgb */ color: rgb(65, 23, 180);
/* oklch */ color: oklch(39.6% 0.217 282.3);
Tailwind
colors: {
  custom: {
    50: '#865ecc',
    500: '#4117b4',
    950: '#000000',
  },
}
SCSS
$custom: #4117b4;
$custom-light: #865ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4117b4",
  "rgb": {
    "r": 65,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 256.051,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39556,
    "c": 0.21711,
    "h": 282.3
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#4117B4
secondary
#AECE59
accent
#F434C1
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4117B4

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

Preview Lab → · Contrast checker → · Palette generator →

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