#4140CB#4140CB

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

Color values

HEX#4140CB
RGBrgb(65, 64, 203)
HSLhsl(240, 57%, 52%)
HSVhsv(240, 68%, 80%)
CMYKcmyk(68%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.18, 44.02, -71.66)
CIE-LCHlch(36.18, 84.11, 301.56°)
OKLaboklab(46.82% 0.0186 -0.207)
OKLCHoklch(46.82% 0.208 275.1)
XYZxyz(14.7893, 9.1011, 57.4656)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140CB #CACB40
analogous
#4084CB #4140CB #8740CB
triadic
#4140CB #CB4140 #40CB41
tetradic
#4140CB #CB4084 #CACB40 #40CB87
square
#4140CB #CB4084 #CACB40 #40CB87
split-complementary
#4140CB #CB8740 #84CB40
monochromatic
#201F72 #2D2CA2 #4140CB #7170D8 #A1A0E5

Accessibility & contrast

On white

7.45
#4140CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4140CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140CB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140CB#FFFFFF#000000##FFFFFF
##4140CB1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4140cb;
/* rgb */ color: rgb(65, 64, 203);
/* oklch */ color: oklch(46.8% 0.208 275.1);
Tailwind
colors: {
  custom: {
    50: '#8776dc',
    500: '#4140cb',
    950: '#000000',
  },
}
SCSS
$custom: #4140cb;
$custom-light: #8776dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4140cb",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 240.432,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46823,
    "c": 0.20785,
    "h": 275.1
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#4140CB
secondary
#D1D295
accent
#E047DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4140CB

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

Preview Lab → · Contrast checker → · Palette generator →

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