#4142BC#4142BC

#4142BC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.8% C 0.186 H 275.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#4142BC
RGBrgb(65, 66, 188)
HSLhsl(240, 49%, 50%)
HSVhsv(240, 65%, 74%)
CMYKcmyk(65.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(35.30, 37.82, -64.33)
CIE-LCHlch(35.30, 74.63, 300.45°)
OKLaboklab(45.78% 0.0188 -0.1855)
OKLCHoklch(45.78% 0.187 275.8)
XYZxyz(13.2023, 8.6500, 48.5411)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142BC #BCBB41
analogous
#4180BC #4142BC #7D41BC
triadic
#4142BC #BC4142 #42BC41
tetradic
#4142BC #BC4180 #BCBB41 #41BC7D
square
#4142BC #BC4180 #BCBB41 #41BC7D
split-complementary
#4142BC #BC7D41 #80BC41
monochromatic
#222261 #31328F #4142BC #6E6ECD #9B9CDC

Accessibility & contrast

On white

7.69
#4142BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4142BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142BC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142BC#FFFFFF#000000##FFFFFF
##4142BC1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4142bc;
/* rgb */ color: rgb(65, 66, 188);
/* oklch */ color: oklch(45.8% 0.186 275.8);
Tailwind
colors: {
  custom: {
    50: '#8477d1',
    500: '#4142bc',
    950: '#000000',
  },
}
SCSS
$custom: #4142bc;
$custom-light: #8477d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4142bc",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 239.512,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45782,
    "c": 0.1865,
    "h": 275.8
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#4142BC
secondary
#C9C890
accent
#D750D8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4142BC

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

Preview Lab → · Contrast checker → · Palette generator →

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