#4142D7#4142D7

#4142D7 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.221 H 274.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#4142D7
RGBrgb(65, 66, 215)
HSLhsl(240, 65%, 55%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(69.8%, 69.3%, 0%, 15.7%)
CIE-LABlab(37.71, 46.80, -76.09)
CIE-LCHlch(37.71, 89.33, 301.60°)
OKLaboklab(48.26% 0.0157 -0.2199)
OKLCHoklch(48.26% 0.221 274.1)
XYZxyz(16.3899, 9.9250, 65.3288)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142D7 #D7D641
analogous
#418DD7 #4142D7 #8B41D7
triadic
#4142D7 #D74142 #42D741
tetradic
#4142D7 #D7418D #D7D641 #41D78B
square
#4142D7 #D7418D #D7D641 #41D78B
split-complementary
#4142D7 #D78B41 #8DD741
monochromatic
#1B1C82 #2627B5 #4142D7 #7474E2 #A6A7EC

Accessibility & contrast

On white

7.03
#4142D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4142D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142D7
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142D7#FFFFFF#000000##FFFFFF
##4142D71.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4142d7;
/* rgb */ color: rgb(65, 66, 215);
/* oklch */ color: oklch(48.3% 0.221 274.1);
Tailwind
colors: {
  custom: {
    50: '#8a77e5',
    500: '#4142d7',
    950: '#000000',
  },
}
SCSS
$custom: #4142d7;
$custom-light: #8a77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4142d7",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 239.6,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48259,
    "c": 0.22051,
    "h": 274.1
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#4142D7
secondary
#D9D99A
accent
#E740E8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4142D7

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

Preview Lab → · Contrast checker → · Palette generator →

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