#4142E4#4142E4

#4142E4 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.236 H 273.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#4142E4
RGBrgb(65, 66, 228)
HSLhsl(240, 75%, 57%)
HSVhsv(240, 71%, 89%)
CMYKcmyk(71.5%, 71.1%, 0%, 10.6%)
CIE-LABlab(38.93, 51.03, -81.51)
CIE-LCHlch(38.93, 96.16, 302.05°)
OKLaboklab(49.51% 0.0138 -0.2358)
OKLCHoklch(49.51% 0.236 273.4)
XYZxyz(18.1271, 10.6199, 74.4783)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4142E4 #E4E341
analogous
#4193E4 #4142E4 #9241E4
triadic
#4142E4 #E44142 #42E441
tetradic
#4142E4 #E44193 #E4E341 #41E492
square
#4142E4 #E44193 #E4E341 #41E492
split-complementary
#4142E4 #E49241 #93E441
monochromatic
#151695 #1D1ECB #4142E4 #7777EC #ACADF3

Accessibility & contrast

On white

6.72
#4142E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4142E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4142E4
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4142E4#FFFFFF#000000##FFFFFF
##4142E41.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E9
Deuteranopia (green-blind)
#0054E1
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4142e4;
/* rgb */ color: rgb(65, 66, 228);
/* oklch */ color: oklch(49.5% 0.236 273.4);
Tailwind
colors: {
  custom: {
    50: '#8d78ee',
    500: '#4142e4',
    950: '#000000',
  },
}
SCSS
$custom: #4142e4;
$custom-light: #8d78ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4142e4",
  "rgb": {
    "r": 65,
    "g": 66,
    "b": 228
  },
  "hsl": {
    "h": 239.632,
    "s": 75.115,
    "l": 57.451
  },
  "oklch": {
    "l": 0.49506,
    "c": 0.23617,
    "h": 273.4
  },
  "luminance": 0.10622
}

Semantic roles & 50–950 ramp

primary
#4142E4
secondary
#E1E19F
accent
#F136F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4142E4

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

Preview Lab → · Contrast checker → · Palette generator →

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