#4142D5#4142D5

#4142D5 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.218 H 274.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4142D5
RGBrgb(65, 66, 213)
HSLhsl(240, 64%, 55%)
HSVhsv(240, 69%, 84%)
CMYKcmyk(69.5%, 69%, 0%, 16.5%)
CIE-LABlab(37.52, 46.15, -75.24)
CIE-LCHlch(37.52, 88.26, 301.52°)
OKLaboklab(48.07% 0.016 -0.2175)
OKLCHoklch(48.07% 0.218 274.2)
XYZxyz(16.1344, 9.8228, 63.9836)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142D5 #D5D441
analogous
#418CD5 #4142D5 #8A41D5
triadic
#4142D5 #D54142 #42D541
tetradic
#4142D5 #D5418C #D5D441 #41D58A
square
#4142D5 #D5418C #D5D441 #41D58A
split-complementary
#4142D5 #D58A41 #8CD541
monochromatic
#1C1D7F #2728B2 #4142D5 #7374E0 #A5A6EB

Accessibility & contrast

On white

7.08
#4142D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4142D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4142D5
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142D5#FFFFFF#000000##FFFFFF
##4142D51.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4142d5;
/* rgb */ color: rgb(65, 66, 213);
/* oklch */ color: oklch(48.1% 0.218 274.2);
Tailwind
colors: {
  custom: {
    50: '#8977e3',
    500: '#4142d5',
    950: '#000000',
  },
}
SCSS
$custom: #4142d5;
$custom-light: #8977e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4142d5",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 239.595,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.4807,
    "c": 0.21806,
    "h": 274.2
  },
  "luminance": 0.09824
}

Semantic roles & 50–950 ramp

primary
#4142D5
secondary
#D8D89A
accent
#E641E7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4142D5

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

Preview Lab → · Contrast checker → · Palette generator →

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