#4142BF#4142BF

#4142BF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.0% C 0.190 H 275.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#4142BF
RGBrgb(65, 66, 191)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 66%, 75%)
CMYKcmyk(66%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.56, 38.83, -65.68)
CIE-LCHlch(35.56, 76.29, 300.59°)
OKLaboklab(46.05% 0.0185 -0.1895)
OKLCHoklch(46.05% 0.19 275.6)
XYZxyz(13.5291, 8.7807, 50.2620)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142BF #BFBE41
analogous
#4181BF #4142BF #7F41BF
triadic
#4142BF #BF4142 #42BF41
tetradic
#4142BF #BF4181 #BFBE41 #41BF7F
square
#4142BF #BF4181 #BFBE41 #41BF7F
split-complementary
#4142BF #BF7F41 #81BF41
monochromatic
#222264 #313292 #4142BF #6F70CE #9D9DDE

Accessibility & contrast

On white

7.62
#4142BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4142BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142BF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142BF#FFFFFF#000000##FFFFFF
##4142BF1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4142bf;
/* rgb */ color: rgb(65, 66, 191);
/* oklch */ color: oklch(46.0% 0.190 275.6);
Tailwind
colors: {
  custom: {
    50: '#8577d3',
    500: '#4142bf',
    950: '#000000',
  },
}
SCSS
$custom: #4142bf;
$custom-light: #8577d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4142bf",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 239.524,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46048,
    "c": 0.19038,
    "h": 275.6
  },
  "luminance": 0.08782
}

Semantic roles & 50–950 ramp

primary
#4142BF
secondary
#CACA92
accent
#D84FD9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4142BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4142BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva