#4140CC#4140CC

#4140CC is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.9% C 0.209 H 275.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4140CC
RGBrgb(65, 64, 204)
HSLhsl(240, 58%, 53%)
HSVhsv(240, 69%, 80%)
CMYKcmyk(68.1%, 68.6%, 0%, 20%)
CIE-LABlab(36.27, 44.35, -72.10)
CIE-LCHlch(36.27, 84.65, 301.60°)
OKLaboklab(46.92% 0.0184 -0.2083)
OKLCHoklch(46.92% 0.209 275.1)
XYZxyz(14.9089, 9.1489, 58.0953)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140CC #CBCC40
analogous
#4085CC #4140CC #8740CC
triadic
#4140CC #CC4140 #40CC41
tetradic
#4140CC #CC4085 #CBCC40 #40CC87
square
#4140CC #CC4085 #CBCC40 #40CC87
split-complementary
#4140CC #CC8740 #85CC40
monochromatic
#1F1F73 #2C2CA3 #4140CC #7170D9 #A1A1E6

Accessibility & contrast

On white

7.42
#4140CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4140CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140CC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140CC#FFFFFF#000000##FFFFFF
##4140CC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4140cc;
/* rgb */ color: rgb(65, 64, 204);
/* oklch */ color: oklch(46.9% 0.209 275.1);
Tailwind
colors: {
  custom: {
    50: '#8876dd',
    500: '#4140cc',
    950: '#000000',
  },
}
SCSS
$custom: #4140cc;
$custom-light: #8876dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4140cc",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 240.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46916,
    "c": 0.20909,
    "h": 275.1
  },
  "luminance": 0.0915
}

Semantic roles & 50–950 ramp

primary
#4140CC
secondary
#D2D295
accent
#E147E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140CC

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

Preview Lab → · Contrast checker → · Palette generator →

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