#4142B8#4142B8

#4142B8 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.4% C 0.181 H 276.0°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4142B8
RGBrgb(65, 66, 184)
HSLhsl(239, 48%, 49%)
HSVhsv(239, 65%, 72%)
CMYKcmyk(64.7%, 64.1%, 0%, 27.8%)
CIE-LABlab(34.96, 36.47, -62.53)
CIE-LCHlch(34.96, 72.39, 300.25°)
OKLaboklab(45.43% 0.0191 -0.1803)
OKLCHoklch(45.43% 0.181 276)
XYZxyz(12.7771, 8.4799, 46.3016)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142B8 #B8B741
analogous
#417EB8 #4142B8 #7C41B8
triadic
#4142B8 #B84142 #42B841
tetradic
#4142B8 #B8417E #B8B741 #41B87C
square
#4142B8 #B8417E #B8B741 #41B87C
split-complementary
#4142B8 #B87C41 #7EB841
monochromatic
#21225E #31328B #4142B8 #6B6CCB #9999DB

Accessibility & contrast

On white

7.79
#4142B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4142B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142B8
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142B8#FFFFFF#000000##FFFFFF
##4142B81.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4142b8;
/* rgb */ color: rgb(65, 66, 184);
/* oklch */ color: oklch(45.4% 0.181 276.0);
Tailwind
colors: {
  custom: {
    50: '#8377ce',
    500: '#4142b8',
    950: '#000000',
  },
}
SCSS
$custom: #4142b8;
$custom-light: #8377ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4142b8",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 239.496,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.18127,
    "h": 276
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

primary
#4142B8
secondary
#C7C68E
accent
#D650D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4142B8

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

Preview Lab → · Contrast checker → · Palette generator →

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