#4140D9#4140D9

#4140D9 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.225 H 274.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#4140D9
RGBrgb(65, 64, 217)
HSLhsl(240, 67%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70%, 70.5%, 0%, 14.9%)
CIE-LABlab(37.48, 48.60, -77.61)
CIE-LCHlch(37.48, 91.57, 302.05°)
OKLaboklab(48.15% 0.0166 -0.2244)
OKLCHoklch(48.15% 0.225 274.2)
XYZxyz(16.5336, 9.7988, 66.6522)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D9 #D8D940
analogous
#408CD9 #4140D9 #8D40D9
triadic
#4140D9 #D94140 #40D941
tetradic
#4140D9 #D9408C #D8D940 #40D98D
square
#4140D9 #D9408C #D8D940 #40D98D
split-complementary
#4140D9 #D98D40 #8CD940
monochromatic
#1B1A84 #2524B7 #4140D9 #7473E3 #A7A6ED

Accessibility & contrast

On white

7.09
#4140D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4140D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D9
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D9#FFFFFF#000000##FFFFFF
##4140D91.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0051D6
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4140d9;
/* rgb */ color: rgb(65, 64, 217);
/* oklch */ color: oklch(48.2% 0.225 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a76e6',
    500: '#4140d9',
    950: '#000000',
  },
}
SCSS
$custom: #4140d9;
$custom-light: #8a76e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d9",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 240.392,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48151,
    "c": 0.22501,
    "h": 274.2
  },
  "luminance": 0.098
}

Semantic roles & 50–950 ramp

primary
#4140D9
secondary
#DADA9A
accent
#EA3EE9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4140D9

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

Preview Lab → · Contrast checker → · Palette generator →

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