#4128BB#4128BB

#4128BB is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.212 H 279.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4128BB
RGBrgb(65, 40, 187)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 73%)
CMYKcmyk(65.2%, 78.6%, 0%, 26.7%)
CIE-LABlab(29.98, 51.98, -72.49)
CIE-LCHlch(29.98, 89.20, 305.64°)
OKLaboklab(41.96% 0.0361 -0.2093)
OKLCHoklch(41.96% 0.212 279.8)
XYZxyz(11.9055, 6.2283, 47.5789)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128BB #A2BB28
analogous
#2859BB #4128BB #8B28BB
triadic
#4128BB #BB4128 #28BB41
tetradic
#4128BB #BB2859 #A2BB28 #28BB8B
square
#4128BB #BB2859 #A2BB28 #28BB8B
split-complementary
#4128BB #BB8B28 #59BB28
monochromatic
#1E1256 #2F1D89 #4128BB #6148D8 #8C7BE3

Accessibility & contrast

On white

9.35
#4128BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4128BB
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128BB#FFFFFF#000000##FFFFFF
##4128BB1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBF
Deuteranopia (green-blind)
#0041B8
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4128bb;
/* rgb */ color: rgb(65, 40, 187);
/* oklch */ color: oklch(42.0% 0.212 279.8);
Tailwind
colors: {
  custom: {
    50: '#8666d1',
    500: '#4128bb',
    950: '#000000',
  },
}
SCSS
$custom: #4128bb;
$custom-light: #8666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4128bb",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 250.204,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41956,
    "c": 0.21239,
    "h": 279.8
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#4128BB
secondary
#BCCB74
accent
#E840CB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4128BB

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

Preview Lab → · Contrast checker → · Palette generator →

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