#4140D5#4140D5

#4140D5 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.220 H 274.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#4140D5
RGBrgb(65, 64, 213)
HSLhsl(240, 64%, 54%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(69.5%, 70%, 0%, 16.5%)
CIE-LABlab(37.10, 47.30, -75.93)
CIE-LCHlch(37.10, 89.46, 301.92°)
OKLaboklab(47.77% 0.0172 -0.2195)
OKLCHoklch(47.77% 0.22 274.5)
XYZxyz(16.0196, 9.5932, 63.9453)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D5 #D4D540
analogous
#4089D5 #4140D5 #8C40D5
triadic
#4140D5 #D54140 #40D541
tetradic
#4140D5 #D54089 #D4D540 #40D58C
square
#4140D5 #D54089 #D4D540 #40D58C
split-complementary
#4140D5 #D58C40 #89D540
monochromatic
#1D1C7F #2827B1 #4140D5 #7372E0 #A5A4EB

Accessibility & contrast

On white

7.19
#4140D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4140D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D5#FFFFFF#000000##FFFFFF
##4140D51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#0050D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4140d5;
/* rgb */ color: rgb(65, 64, 213);
/* oklch */ color: oklch(47.8% 0.220 274.5);
Tailwind
colors: {
  custom: {
    50: '#8a76e3',
    500: '#4140d5',
    950: '#000000',
  },
}
SCSS
$custom: #4140d5;
$custom-light: #8a76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d5",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 240.403,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.22016,
    "h": 274.5
  },
  "luminance": 0.09595
}

Semantic roles & 50–950 ramp

primary
#4140D5
secondary
#D8D899
accent
#E741E6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #4140D5

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

Preview Lab → · Contrast checker → · Palette generator →

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