#4140D8#4140D8

#4140D8 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.1% C 0.224 H 274.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4140D8
RGBrgb(65, 64, 216)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 70%, 85%)
CMYKcmyk(69.9%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.38, 48.28, -77.19)
CIE-LCHlch(37.38, 91.05, 302.02°)
OKLaboklab(48.06% 0.0167 -0.2232)
OKLCHoklch(48.06% 0.224 274.3)
XYZxyz(16.4039, 9.7469, 65.9693)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D8 #D7D840
analogous
#408BD8 #4140D8 #8D40D8
triadic
#4140D8 #D84140 #40D841
tetradic
#4140D8 #D8408B #D7D840 #40D88D
square
#4140D8 #D8408B #D7D840 #40D88D
split-complementary
#4140D8 #D88D40 #8BD840
monochromatic
#1B1B83 #2625B6 #4140D8 #7473E2 #A6A6ED

Accessibility & contrast

On white

7.12
#4140D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4140D8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D8
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D8#FFFFFF#000000##FFFFFF
##4140D81.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDD
Deuteranopia (green-blind)
#0051D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4140d8;
/* rgb */ color: rgb(65, 64, 216);
/* oklch */ color: oklch(48.1% 0.224 274.3);
Tailwind
colors: {
  custom: {
    50: '#8a76e5',
    500: '#4140d8',
    950: '#000000',
  },
}
SCSS
$custom: #4140d8;
$custom-light: #8a76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d8",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 240.395,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48055,
    "c": 0.2238,
    "h": 274.3
  },
  "luminance": 0.09748
}

Semantic roles & 50–950 ramp

primary
#4140D8
secondary
#D9DA9A
accent
#E93FE8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4140D8

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

Preview Lab → · Contrast checker → · Palette generator →

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