#4142B5#4142B5

#4142B5 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.177 H 276.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#4142B5
RGBrgb(65, 66, 181)
HSLhsl(239, 47%, 48%)
HSVhsv(239, 64%, 71%)
CMYKcmyk(64.1%, 63.5%, 0%, 29%)
CIE-LABlab(34.71, 35.45, -61.17)
CIE-LCHlch(34.71, 70.70, 300.10°)
OKLaboklab(45.17% 0.0193 -0.1763)
OKLCHoklch(45.17% 0.177 276.3)
XYZxyz(12.4660, 8.3554, 44.6629)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142B5 #B5B441
analogous
#417CB5 #4142B5 #7A41B5
triadic
#4142B5 #B54142 #42B541
tetradic
#4142B5 #B5417C #B5B441 #41B57A
square
#4142B5 #B5417C #B5B441 #41B57A
split-complementary
#4142B5 #B57A41 #7CB541
monochromatic
#21215B #313288 #4142B5 #6A6BC9 #9797DA

Accessibility & contrast

On white

7.86
#4142B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4142B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142B5
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142B5#FFFFFF#000000##FFFFFF
##4142B51.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4142b5;
/* rgb */ color: rgb(65, 66, 181);
/* oklch */ color: oklch(45.2% 0.177 276.3);
Tailwind
colors: {
  custom: {
    50: '#8377cc',
    500: '#4142b5',
    950: '#000000',
  },
}
SCSS
$custom: #4142b5;
$custom-light: #8377cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4142b5",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 239.483,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45169,
    "c": 0.17732,
    "h": 276.3
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

primary
#4142B5
secondary
#C5C58C
accent
#D651D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4142B5

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

Preview Lab → · Contrast checker → · Palette generator →

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