#4127BB#4127BB

#4127BB is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.8% C 0.213 H 279.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4127BB
RGBrgb(65, 39, 187)
HSLhsl(251, 65%, 44%)
HSVhsv(251, 79%, 73%)
CMYKcmyk(65.2%, 79.1%, 0%, 26.7%)
CIE-LABlab(29.82, 52.45, -72.76)
CIE-LCHlch(29.82, 89.70, 305.79°)
OKLaboklab(41.84% 0.0367 -0.2101)
OKLCHoklch(41.84% 0.213 279.9)
XYZxyz(11.8723, 6.1618, 47.5678)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127BB #A1BB27
analogous
#2757BB #4127BB #8B27BB
triadic
#4127BB #BB4127 #27BB41
tetradic
#4127BB #BB2757 #A1BB27 #27BB8B
square
#4127BB #BB2757 #A1BB27 #27BB8B
split-complementary
#4127BB #BB8B27 #57BB27
monochromatic
#1E1256 #2F1C88 #4127BB #6047D9 #8C79E3

Accessibility & contrast

On white

9.41
#4127BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4127BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127BB
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127BB#FFFFFF#000000##FFFFFF
##4127BB1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBF
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4127bb;
/* rgb */ color: rgb(65, 39, 187);
/* oklch */ color: oklch(41.8% 0.213 279.9);
Tailwind
colors: {
  custom: {
    50: '#8666d1',
    500: '#4127bb',
    950: '#000000',
  },
}
SCSS
$custom: #4127bb;
$custom-light: #8666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4127bb",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 250.541,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41842,
    "c": 0.21324,
    "h": 279.9
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#4127BB
secondary
#BBCB73
accent
#E83FCB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4127BB

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

Preview Lab → · Contrast checker → · Palette generator →

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