#4127BC#4127BC

#4127BC is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.214 H 279.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4127BC
RGBrgb(65, 39, 188)
HSLhsl(250, 66%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(65.4%, 79.3%, 0%, 26.3%)
CIE-LABlab(29.92, 52.75, -73.18)
CIE-LCHlch(29.92, 90.21, 305.78°)
OKLaboklab(41.95% 0.0364 -0.2113)
OKLCHoklch(41.95% 0.214 279.8)
XYZxyz(11.9797, 6.2047, 48.1335)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127BC #A2BC27
analogous
#2757BC #4127BC #8C27BC
triadic
#4127BC #BC4127 #27BC41
tetradic
#4127BC #BC2757 #A2BC27 #27BC8C
square
#4127BC #BC2757 #A2BC27 #27BC8C
split-complementary
#4127BC #BC8C27 #57BC27
monochromatic
#1E1257 #2F1C89 #4127BC #6147D9 #8C7AE3

Accessibility & contrast

On white

9.37
#4127BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4127BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127BC
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127BC#FFFFFF#000000##FFFFFF
##4127BC1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4127bc;
/* rgb */ color: rgb(65, 39, 188);
/* oklch */ color: oklch(41.9% 0.214 279.8);
Tailwind
colors: {
  custom: {
    50: '#8666d2',
    500: '#4127bc',
    950: '#000000',
  },
}
SCSS
$custom: #4127bc;
$custom-light: #8666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4127bc",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 250.47,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41947,
    "c": 0.21439,
    "h": 279.8
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#4127BC
secondary
#BCCB73
accent
#E93FCB
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4127BC

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

Preview Lab → · Contrast checker → · Palette generator →

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