#4128BC#4128BC

#4128BC is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.214 H 279.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4128BC
RGBrgb(65, 40, 188)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(65.4%, 78.7%, 0%, 26.3%)
CIE-LABlab(30.09, 52.27, -72.91)
CIE-LCHlch(30.09, 89.71, 305.64°)
OKLaboklab(42.06% 0.0359 -0.2105)
OKLCHoklch(42.06% 0.214 279.7)
XYZxyz(12.0130, 6.2713, 48.1446)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128BC #A3BC28
analogous
#2859BC #4128BC #8B28BC
triadic
#4128BC #BC4128 #28BC41
tetradic
#4128BC #BC2859 #A3BC28 #28BC8B
square
#4128BC #BC2859 #A3BC28 #28BC8B
split-complementary
#4128BC #BC8B28 #59BC28
monochromatic
#1E1357 #301D8A #4128BC #6149D8 #8D7BE3

Accessibility & contrast

On white

9.32
#4128BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4128BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128BC
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128BC#FFFFFF#000000##FFFFFF
##4128BC1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4128bc;
/* rgb */ color: rgb(65, 40, 188);
/* oklch */ color: oklch(42.1% 0.214 279.7);
Tailwind
colors: {
  custom: {
    50: '#8666d2',
    500: '#4128bc',
    950: '#000000',
  },
}
SCSS
$custom: #4128bc;
$custom-light: #8666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4128bc",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 250.135,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42061,
    "c": 0.21353,
    "h": 279.7
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4128BC

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

Preview Lab → · Contrast checker → · Palette generator →

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