#4140C9#4140C9

#4140C9 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.205 H 275.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4140C9
RGBrgb(65, 64, 201)
HSLhsl(240, 56%, 52%)
HSVhsv(240, 68%, 79%)
CMYKcmyk(67.7%, 68.2%, 0%, 21.2%)
CIE-LABlab(36.00, 43.36, -70.80)
CIE-LCHlch(36.00, 83.02, 301.49°)
OKLaboklab(46.64% 0.0188 -0.2045)
OKLCHoklch(46.64% 0.205 275.3)
XYZxyz(14.5525, 9.0063, 56.2185)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140C9 #C8C940
analogous
#4084C9 #4140C9 #8640C9
triadic
#4140C9 #C94140 #40C941
tetradic
#4140C9 #C94084 #C8C940 #40C986
square
#4140C9 #C94084 #C8C940 #40C986
split-complementary
#4140C9 #C98640 #84C940
monochromatic
#201F6F #2E2D9F #4140C9 #7070D6 #A09FE4

Accessibility & contrast

On white

7.50
#4140C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4140C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140C9
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140C9#FFFFFF#000000##FFFFFF
##4140C91.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#004EC6
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4140c9;
/* rgb */ color: rgb(65, 64, 201);
/* oklch */ color: oklch(46.6% 0.205 275.3);
Tailwind
colors: {
  custom: {
    50: '#8776db',
    500: '#4140c9',
    950: '#000000',
  },
}
SCSS
$custom: #4140c9;
$custom-light: #8776db;
$custom-dark: #000000;
JSON
{
  "hex": "#4140c9",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 240.438,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46636,
    "c": 0.20535,
    "h": 275.3
  },
  "luminance": 0.09008
}

Semantic roles & 50–950 ramp

primary
#4140C9
secondary
#D0D094
accent
#DF49DE
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140C9

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

Preview Lab → · Contrast checker → · Palette generator →

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