#4128B0#4128B0

#4128B0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.200 H 281.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4128B0
RGBrgb(65, 40, 176)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 69%)
CMYKcmyk(63.1%, 77.3%, 0%, 31%)
CIE-LABlab(28.84, 48.71, -67.83)
CIE-LCHlch(28.84, 83.51, 305.68°)
OKLaboklab(40.82% 0.0392 -0.1957)
OKLCHoklch(40.82% 0.2 281.3)
XYZxyz(10.7728, 5.7752, 41.6129)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128B0 #97B028
analogous
#2853B0 #4128B0 #8528B0
triadic
#4128B0 #B04128 #28B041
tetradic
#4128B0 #B02853 #97B028 #28B085
square
#4128B0 #B02853 #97B028 #28B085
split-complementary
#4128B0 #B08528 #53B028
monochromatic
#1C114C #2F1D7E #4128B0 #5C41D4 #8773DF

Accessibility & contrast

On white

9.74
#4128B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4128B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128B0
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128B0#FFFFFF#000000##FFFFFF
##4128B01.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#003FAE
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4128b0;
/* rgb */ color: rgb(65, 40, 176);
/* oklch */ color: oklch(40.8% 0.200 281.3);
Tailwind
colors: {
  custom: {
    50: '#8466c9',
    500: '#4128b0',
    950: '#000000',
  },
}
SCSS
$custom: #4128b0;
$custom-light: #8466c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4128b0",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 251.029,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40818,
    "c": 0.19959,
    "h": 281.3
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#4128B0
secondary
#B6C66D
accent
#E642C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128B0

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

Preview Lab → · Contrast checker → · Palette generator →

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