#4140D0#4140D0

#4140D0 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.3% C 0.214 H 274.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#4140D0
RGBrgb(65, 64, 208)
HSLhsl(240, 61%, 53%)
HSVhsv(240, 69%, 82%)
CMYKcmyk(68.8%, 69.2%, 0%, 18.4%)
CIE-LABlab(36.64, 45.67, -73.81)
CIE-LCHlch(36.64, 86.80, 301.75°)
OKLaboklab(47.29% 0.0179 -0.2133)
OKLCHoklch(47.29% 0.214 274.8)
XYZxyz(15.3948, 9.3432, 60.6544)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140D0 #CFD040
analogous
#4087D0 #4140D0 #8940D0
triadic
#4140D0 #D04140 #40D041
tetradic
#4140D0 #D04087 #CFD040 #40D089
square
#4140D0 #D04087 #CFD040 #40D089
split-complementary
#4140D0 #D08940 #87D040
monochromatic
#1E1E78 #2B2AA9 #4140D0 #7271DC #A3A2E8

Accessibility & contrast

On white

7.32
#4140D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4140D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140D0
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140D0#FFFFFF#000000##FFFFFF
##4140D01.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD4
Deuteranopia (green-blind)
#004FCD
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4140d0;
/* rgb */ color: rgb(65, 64, 208);
/* oklch */ color: oklch(47.3% 0.214 274.8);
Tailwind
colors: {
  custom: {
    50: '#8876e0',
    500: '#4140d0',
    950: '#000000',
  },
}
SCSS
$custom: #4140d0;
$custom-light: #8876e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4140d0",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 240.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.47292,
    "c": 0.21404,
    "h": 274.8
  },
  "luminance": 0.09345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4140D0

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

Preview Lab → · Contrast checker → · Palette generator →

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