#4140CA#4140CA

#4140CA is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.7% C 0.207 H 275.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4140CA
RGBrgb(65, 64, 202)
HSLhsl(240, 57%, 52%)
HSVhsv(240, 68%, 79%)
CMYKcmyk(67.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.09, 43.69, -71.23)
CIE-LCHlch(36.09, 83.57, 301.53°)
OKLaboklab(46.73% 0.0187 -0.2058)
OKLCHoklch(46.73% 0.207 275.2)
XYZxyz(14.6705, 9.0535, 56.8400)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140CA #C9CA40
analogous
#4084CA #4140CA #8640CA
triadic
#4140CA #CA4140 #40CA41
tetradic
#4140CA #CA4084 #C9CA40 #40CA86
square
#4140CA #CA4084 #C9CA40 #40CA86
split-complementary
#4140CA #CA8640 #84CA40
monochromatic
#201F70 #2D2CA0 #4140CA #7170D7 #A0A0E5

Accessibility & contrast

On white

7.47
#4140CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4140CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140CA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140CA#FFFFFF#000000##FFFFFF
##4140CA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4140ca;
/* rgb */ color: rgb(65, 64, 202);
/* oklch */ color: oklch(46.7% 0.207 275.2);
Tailwind
colors: {
  custom: {
    50: '#8776db',
    500: '#4140ca',
    950: '#000000',
  },
}
SCSS
$custom: #4140ca;
$custom-light: #8776db;
$custom-dark: #000000;
JSON
{
  "hex": "#4140ca",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 240.435,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46729,
    "c": 0.20661,
    "h": 275.2
  },
  "luminance": 0.09055
}

Semantic roles & 50–950 ramp

primary
#4140CA
secondary
#D1D195
accent
#E048DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140CA

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

Preview Lab → · Contrast checker → · Palette generator →

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