#4140CF#4140CF

#4140CF is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.213 H 274.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#4140CF
RGBrgb(65, 64, 207)
HSLhsl(240, 60%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(68.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(36.54, 45.34, -73.38)
CIE-LCHlch(36.54, 86.26, 301.71°)
OKLaboklab(47.2% 0.018 -0.212)
OKLCHoklch(47.2% 0.213 274.9)
XYZxyz(15.2721, 9.2942, 60.0085)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140CF #CECF40
analogous
#4086CF #4140CF #8940CF
triadic
#4140CF #CF4140 #40CF41
tetradic
#4140CF #CF4086 #CECF40 #40CF89
square
#4140CF #CF4086 #CECF40 #40CF89
split-complementary
#4140CF #CF8940 #86CF40
monochromatic
#1E1E77 #2B2AA8 #4140CF #7271DB #A2A2E8

Accessibility & contrast

On white

7.34
#4140CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4140CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140CF
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140CF#FFFFFF#000000##FFFFFF
##4140CF1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4140cf;
/* rgb */ color: rgb(65, 64, 207);
/* oklch */ color: oklch(47.2% 0.213 274.9);
Tailwind
colors: {
  custom: {
    50: '#8876df',
    500: '#4140cf',
    950: '#000000',
  },
}
SCSS
$custom: #4140cf;
$custom-light: #8876df;
$custom-dark: #000000;
JSON
{
  "hex": "#4140cf",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 240.42,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47198,
    "c": 0.2128,
    "h": 274.9
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#4140CF
secondary
#D4D497
accent
#E345E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140CF

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

Preview Lab → · Contrast checker → · Palette generator →

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