#4142B4#4142B4

#4142B4 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.176 H 276.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4142B4
RGBrgb(65, 66, 180)
HSLhsl(239, 47%, 48%)
HSVhsv(239, 64%, 71%)
CMYKcmyk(63.9%, 63.3%, 0%, 29.4%)
CIE-LABlab(34.63, 35.11, -60.71)
CIE-LCHlch(34.63, 70.13, 300.04°)
OKLaboklab(45.08% 0.0194 -0.1749)
OKLCHoklch(45.08% 0.176 276.3)
XYZxyz(12.3637, 8.3145, 44.1245)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142B4 #B4B341
analogous
#417BB4 #4142B4 #7941B4
triadic
#4142B4 #B44142 #42B441
tetradic
#4142B4 #B4417B #B4B341 #41B479
square
#4142B4 #B4417B #B4B341 #41B479
split-complementary
#4142B4 #B47941 #7BB441
monochromatic
#21215A #313287 #4142B4 #696AC9 #9697D9

Accessibility & contrast

On white

7.89
#4142B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4142B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142B4
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142B4#FFFFFF#000000##FFFFFF
##4142B41.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4142b4;
/* rgb */ color: rgb(65, 66, 180);
/* oklch */ color: oklch(45.1% 0.176 276.3);
Tailwind
colors: {
  custom: {
    50: '#8376cb',
    500: '#4142b4',
    950: '#000000',
  },
}
SCSS
$custom: #4142b4;
$custom-light: #8376cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4142b4",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 239.478,
    "s": 46.939,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.17599,
    "h": 276.3
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

primary
#4142B4
secondary
#C5C48C
accent
#D551D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4142B4

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

Preview Lab → · Contrast checker → · Palette generator →

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