#4128B9#4128B9

#4128B9 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.210 H 280.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4128B9
RGBrgb(65, 40, 185)
HSLhsl(250, 64%, 44%)
HSVhsv(250, 78%, 73%)
CMYKcmyk(64.9%, 78.4%, 0%, 27.5%)
CIE-LABlab(29.77, 51.38, -71.65)
CIE-LCHlch(29.77, 88.17, 305.65°)
OKLaboklab(41.75% 0.0367 -0.2068)
OKLCHoklch(41.75% 0.21 280.1)
XYZxyz(11.6929, 6.1433, 46.4591)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128B9 #A0B928
analogous
#2858B9 #4128B9 #8A28B9
triadic
#4128B9 #B94128 #28B941
tetradic
#4128B9 #B92858 #A0B928 #28B98A
square
#4128B9 #B92858 #A0B928 #28B98A
split-complementary
#4128B9 #B98A28 #58B928
monochromatic
#1E1254 #2F1D87 #4128B9 #6047D7 #8B79E2

Accessibility & contrast

On white

9.42
#4128B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4128B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128B9
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128B9#FFFFFF#000000##FFFFFF
##4128B91.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4128b9;
/* rgb */ color: rgb(65, 40, 185);
/* oklch */ color: oklch(41.7% 0.210 280.1);
Tailwind
colors: {
  custom: {
    50: '#8666cf',
    500: '#4128b9',
    950: '#000000',
  },
}
SCSS
$custom: #4128b9;
$custom-light: #8666cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4128b9",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 250.345,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41747,
    "c": 0.21008,
    "h": 280.1
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#4128B9
secondary
#BBCA73
accent
#E740CB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4128B9

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

Preview Lab → · Contrast checker → · Palette generator →

#4128B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva