#4140CE#4140CE

#4140CE is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.1% C 0.212 H 274.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#4140CE
RGBrgb(65, 64, 206)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(68.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.45, 45.01, -72.95)
CIE-LCHlch(36.45, 85.72, 301.67°)
OKLaboklab(47.1% 0.0182 -0.2108)
OKLCHoklch(47.1% 0.212 274.9)
XYZxyz(15.1503, 9.2454, 59.3667)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140CE #CDCE40
analogous
#4086CE #4140CE #8840CE
triadic
#4140CE #CE4140 #40CE41
tetradic
#4140CE #CE4086 #CDCE40 #40CE88
square
#4140CE #CE4086 #CDCE40 #40CE88
split-complementary
#4140CE #CE8840 #86CE40
monochromatic
#1F1E75 #2C2BA6 #4140CE #7171DA #A2A1E7

Accessibility & contrast

On white

7.37
#4140CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4140CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140CE
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140CE#FFFFFF#000000##FFFFFF
##4140CE1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4140ce;
/* rgb */ color: rgb(65, 64, 206);
/* oklch */ color: oklch(47.1% 0.212 274.9);
Tailwind
colors: {
  custom: {
    50: '#8876de',
    500: '#4140ce',
    950: '#000000',
  },
}
SCSS
$custom: #4140ce;
$custom-light: #8876de;
$custom-dark: #000000;
JSON
{
  "hex": "#4140ce",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 240.423,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47104,
    "c": 0.21157,
    "h": 274.9
  },
  "luminance": 0.09247
}

Semantic roles & 50–950 ramp

primary
#4140CE
secondary
#D3D496
accent
#E245E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140CE

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

Preview Lab → · Contrast checker → · Palette generator →

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