#4128BD#4128BD

#4128BD is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.215 H 279.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4128BD
RGBrgb(65, 40, 189)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(65.6%, 78.8%, 0%, 25.9%)
CIE-LABlab(30.19, 52.57, -73.32)
CIE-LCHlch(30.19, 90.22, 305.64°)
OKLaboklab(42.17% 0.0356 -0.2117)
OKLCHoklch(42.17% 0.215 279.5)
XYZxyz(12.1211, 6.3145, 48.7143)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128BD #A4BD28
analogous
#285ABD #4128BD #8C28BD
triadic
#4128BD #BD4128 #28BD41
tetradic
#4128BD #BD285A #A4BD28 #28BD8C
square
#4128BD #BD285A #A4BD28 #28BD8C
split-complementary
#4128BD #BD8C28 #5ABD28
monochromatic
#1E1358 #301D8A #4128BD #624AD9 #8D7CE3

Accessibility & contrast

On white

9.28
#4128BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4128BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128BD
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128BD#FFFFFF#000000##FFFFFF
##4128BD1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#0041BA
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4128bd;
/* rgb */ color: rgb(65, 40, 189);
/* oklch */ color: oklch(42.2% 0.215 279.5);
Tailwind
colors: {
  custom: {
    50: '#8767d2',
    500: '#4128bd',
    950: '#000000',
  },
}
SCSS
$custom: #4128bd;
$custom-light: #8767d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4128bd",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 250.067,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.21468,
    "h": 279.5
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#4128BD
secondary
#BDCB75
accent
#E840CC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4128BD

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

Preview Lab → · Contrast checker → · Palette generator →

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