#4140E4#4140E4

#4140E4 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.238 H 273.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4140E4
RGBrgb(65, 64, 228)
HSLhsl(240, 75%, 57%)
HSVhsv(240, 72%, 89%)
CMYKcmyk(71.5%, 71.9%, 0%, 10.6%)
CIE-LABlab(38.53, 52.14, -82.17)
CIE-LCHlch(38.53, 97.31, 302.40°)
OKLaboklab(49.22% 0.0148 -0.2377)
OKLCHoklch(49.22% 0.238 273.6)
XYZxyz(18.0123, 10.3902, 74.4400)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140E4 #E3E440
analogous
#4091E4 #4140E4 #9340E4
triadic
#4140E4 #E44140 #40E441
tetradic
#4140E4 #E44091 #E3E440 #40E493
square
#4140E4 #E44091 #E3E440 #40E493
split-complementary
#4140E4 #E49340 #91E440
monochromatic
#161595 #1E1DCA #4140E4 #7676EC #ACABF3

Accessibility & contrast

On white

6.82
#4140E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4140E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4140E4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140E4#FFFFFF#000000##FFFFFF
##4140E41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E9
Deuteranopia (green-blind)
#0053E1
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4140e4;
/* rgb */ color: rgb(65, 64, 228);
/* oklch */ color: oklch(49.2% 0.238 273.6);
Tailwind
colors: {
  custom: {
    50: '#8d77ee',
    500: '#4140e4',
    950: '#000000',
  },
}
SCSS
$custom: #4140e4;
$custom-light: #8d77ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4140e4",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 228
  },
  "hsl": {
    "h": 240.366,
    "s": 75.229,
    "l": 57.255
  },
  "oklch": {
    "l": 0.49222,
    "c": 0.23813,
    "h": 273.6
  },
  "luminance": 0.10392
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4140E4

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

Preview Lab → · Contrast checker → · Palette generator →

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