#4140D1#4140D1

#4140D1 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.215 H 274.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4140D1
RGBrgb(65, 64, 209)
HSLhsl(240, 61%, 54%)
HSVhsv(240, 69%, 82%)
CMYKcmyk(68.9%, 69.4%, 0%, 18%)
CIE-LABlab(36.73, 46.00, -74.24)
CIE-LCHlch(36.73, 87.33, 301.78°)
OKLaboklab(47.39% 0.0177 -0.2145)
OKLCHoklch(47.39% 0.215 274.7)
XYZxyz(15.5182, 9.3926, 61.3044)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D1 #D0D140
analogous
#4087D1 #4140D1 #8940D1
triadic
#4140D1 #D14140 #40D141
tetradic
#4140D1 #D14087 #D0D140 #40D189
square
#4140D1 #D14087 #D0D140 #40D189
split-complementary
#4140D1 #D18940 #87D140
monochromatic
#1E1D79 #2A29AB #4140D1 #7271DD #A3A3E9

Accessibility & contrast

On white

7.29
#4140D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4140D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D1#FFFFFF#000000##FFFFFF
##4140D11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4140d1;
/* rgb */ color: rgb(65, 64, 209);
/* oklch */ color: oklch(47.4% 0.215 274.7);
Tailwind
colors: {
  custom: {
    50: '#8976e0',
    500: '#4140d1',
    950: '#000000',
  },
}
SCSS
$custom: #4140d1;
$custom-light: #8976e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d1",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 240.414,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47387,
    "c": 0.21527,
    "h": 274.7
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#4140D1
secondary
#D5D597
accent
#E444E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140D1

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

Preview Lab → · Contrast checker → · Palette generator →

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