#4140C7#4140C7

#4140C7 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.5% C 0.203 H 275.4°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#4140C7
RGBrgb(65, 64, 199)
HSLhsl(240, 55%, 52%)
HSVhsv(240, 68%, 78%)
CMYKcmyk(67.3%, 67.8%, 0%, 22%)
CIE-LABlab(35.82, 42.70, -69.93)
CIE-LCHlch(35.82, 81.94, 301.41°)
OKLaboklab(46.45% 0.0191 -0.2019)
OKLCHoklch(46.45% 0.203 275.4)
XYZxyz(14.3188, 8.9128, 54.9875)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C7 #C6C740
analogous
#4083C7 #4140C7 #8440C7
triadic
#4140C7 #C74140 #40C741
tetradic
#4140C7 #C74083 #C6C740 #40C784
square
#4140C7 #C74083 #C6C740 #40C784
split-complementary
#4140C7 #C78440 #83C740
monochromatic
#20206D #2F2E9C #4140C7 #706FD5 #9F9FE3

Accessibility & contrast

On white

7.55
#4140C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4140C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C7
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C7#FFFFFF#000000##FFFFFF
##4140C71.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4140c7;
/* rgb */ color: rgb(65, 64, 199);
/* oklch */ color: oklch(46.5% 0.203 275.4);
Tailwind
colors: {
  custom: {
    50: '#8776d9',
    500: '#4140c7',
    950: '#000000',
  },
}
SCSS
$custom: #4140c7;
$custom-light: #8776d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c7",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 240.444,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46451,
    "c": 0.20285,
    "h": 275.4
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#4140C7
secondary
#CFCF94
accent
#DE4ADD
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140C7

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

Preview Lab → · Contrast checker → · Palette generator →

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