#4140D2#4140D2

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

Color values

HEX#4140D2
RGBrgb(65, 64, 210)
HSLhsl(240, 62%, 54%)
HSVhsv(240, 70%, 82%)
CMYKcmyk(69%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.82, 46.32, -74.66)
CIE-LCHlch(36.82, 87.86, 301.82°)
OKLaboklab(47.48% 0.0176 -0.2158)
OKLCHoklch(47.48% 0.217 274.7)
XYZxyz(15.6424, 9.4423, 61.9585)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D2 #D1D240
analogous
#4088D2 #4140D2 #8A40D2
triadic
#4140D2 #D24140 #40D241
tetradic
#4140D2 #D24088 #D1D240 #40D28A
square
#4140D2 #D24088 #D1D240 #40D28A
split-complementary
#4140D2 #D28A40 #88D240
monochromatic
#1E1D7B #2929AC #4140D2 #7272DE #A4A3E9

Accessibility & contrast

On white

7.27
#4140D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4140D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D2#FFFFFF#000000##FFFFFF
##4140D21.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4140d2;
/* rgb */ color: rgb(65, 64, 210);
/* oklch */ color: oklch(47.5% 0.216 274.7);
Tailwind
colors: {
  custom: {
    50: '#8976e1',
    500: '#4140d2',
    950: '#000000',
  },
}
SCSS
$custom: #4140d2;
$custom-light: #8976e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d2",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 240.411,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47482,
    "c": 0.2165,
    "h": 274.7
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#4140D2
secondary
#D6D698
accent
#E543E4
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #4140D2

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

Preview Lab → · Contrast checker → · Palette generator →

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