#4142D8#4142D8

#4142D8 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.222 H 274.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#4142D8
RGBrgb(65, 66, 216)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 70%, 85%)
CMYKcmyk(69.9%, 69.4%, 0%, 15.3%)
CIE-LABlab(37.80, 47.13, -76.51)
CIE-LCHlch(37.80, 89.86, 301.63°)
OKLaboklab(48.35% 0.0156 -0.2212)
OKLCHoklch(48.35% 0.222 274)
XYZxyz(16.5187, 9.9765, 66.0075)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142D8 #D8D741
analogous
#418DD8 #4142D8 #8C41D8
triadic
#4142D8 #D84142 #42D841
tetradic
#4142D8 #D8418D #D8D741 #41D88C
square
#4142D8 #D8418D #D8D741 #41D88C
split-complementary
#4142D8 #D88C41 #8DD841
monochromatic
#1B1C84 #2526B6 #4142D8 #7475E2 #A7A7ED

Accessibility & contrast

On white

7.01
#4142D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4142D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4142D8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142D8#FFFFFF#000000##FFFFFF
##4142D81.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0052D5
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4142d8;
/* rgb */ color: rgb(65, 66, 216);
/* oklch */ color: oklch(48.4% 0.222 274.0);
Tailwind
colors: {
  custom: {
    50: '#8a77e5',
    500: '#4142d8',
    950: '#000000',
  },
}
SCSS
$custom: #4142d8;
$custom-light: #8a77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4142d8",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 239.603,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48353,
    "c": 0.22173,
    "h": 274
  },
  "luminance": 0.09978
}

Semantic roles & 50–950 ramp

primary
#4142D8
secondary
#DADA9B
accent
#E83FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4142D8

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

Preview Lab → · Contrast checker → · Palette generator →

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