#4142B9#4142B9

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

Color values

HEX#4142B9
RGBrgb(65, 66, 185)
HSLhsl(240, 48%, 49%)
HSVhsv(240, 65%, 73%)
CMYKcmyk(64.9%, 64.3%, 0%, 27.5%)
CIE-LABlab(35.05, 36.81, -62.98)
CIE-LCHlch(35.05, 72.95, 300.30°)
OKLaboklab(45.52% 0.019 -0.1816)
OKLCHoklch(45.52% 0.183 276)
XYZxyz(12.8823, 8.5219, 46.8556)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142B9 #B9B841
analogous
#417EB9 #4142B9 #7C41B9
triadic
#4142B9 #B94142 #42B941
tetradic
#4142B9 #B9417E #B9B841 #41B97C
square
#4142B9 #B9417E #B9B841 #41B97C
split-complementary
#4142B9 #B97C41 #7EB941
monochromatic
#21225E #31328C #4142B9 #6C6DCB #999ADB

Accessibility & contrast

On white

7.76
#4142B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4142B9
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142B9#FFFFFF#000000##FFFFFF
##4142B91.007.762.707.76
#FFFFFF7.761.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4142b9;
/* rgb */ color: rgb(65, 66, 185);
/* oklch */ color: oklch(45.5% 0.183 276.0);
Tailwind
colors: {
  custom: {
    50: '#8477cf',
    500: '#4142b9',
    950: '#000000',
  },
}
SCSS
$custom: #4142b9;
$custom-light: #8477cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4142b9",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 239.5,
    "s": 48,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.18258,
    "h": 276
  },
  "luminance": 0.08523
}

Semantic roles & 50–950 ramp

primary
#4142B9
secondary
#C7C78F
accent
#D650D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4142B9

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

Preview Lab → · Contrast checker → · Palette generator →

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