#4142EA#4142EA

#4142EA is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.243 H 273.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#4142EA
RGBrgb(65, 66, 234)
HSLhsl(240, 80%, 59%)
HSVhsv(240, 72%, 92%)
CMYKcmyk(72.2%, 71.8%, 0%, 8.2%)
CIE-LABlab(39.51, 52.95, -83.96)
CIE-LCHlch(39.51, 99.26, 302.24°)
OKLaboklab(50.09% 0.0129 -0.2429)
OKLCHoklch(50.09% 0.243 273)
XYZxyz(18.9745, 10.9588, 78.9412)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142EA #EAE941
analogous
#4196EA #4142EA #9441EA
triadic
#4142EA #EA4142 #42EA41
tetradic
#4142EA #EA4196 #EAE941 #41EA94
square
#4142EA #EA4196 #EAE941 #41EA94
split-complementary
#4142EA #EA9441 #96EA41
monochromatic
#12129F #1819D6 #4142EA #7879F0 #AFB0F6

Accessibility & contrast

On white

6.58
#4142EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4142EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4142EA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142EA#FFFFFF#000000##FFFFFF
##4142EA1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065EF
Deuteranopia (green-blind)
#0055E7
Tritanopia (blue-blind)
#007292
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4142ea;
/* rgb */ color: rgb(65, 66, 234);
/* oklch */ color: oklch(50.1% 0.243 273.0);
Tailwind
colors: {
  custom: {
    50: '#8e78f2',
    500: '#4142ea',
    950: '#000000',
  },
}
SCSS
$custom: #4142ea;
$custom-light: #8e78f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4142ea",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 239.645,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.50093,
    "c": 0.24326,
    "h": 273
  },
  "luminance": 0.10961
}

Semantic roles & 50–950 ramp

primary
#4142EA
secondary
#E5E4A2
accent
#F531F7
background
#F9F7FF
surface
#F2EDFE
border
#CCC8D6
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4142EA

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

Preview Lab → · Contrast checker → · Palette generator →

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