#4140BC#4140BC

#4140BC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.189 H 276.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4140BC
RGBrgb(65, 64, 188)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(65.4%, 66%, 0%, 26.3%)
CIE-LABlab(34.84, 39.04, -65.08)
CIE-LCHlch(34.84, 75.89, 300.96°)
OKLaboklab(45.45% 0.0203 -0.1878)
OKLCHoklch(45.45% 0.189 276.2)
XYZxyz(13.0875, 8.4203, 48.5028)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140BC #BBBC40
analogous
#407DBC #4140BC #7F40BC
triadic
#4140BC #BC4140 #40BC41
tetradic
#4140BC #BC407D #BBBC40 #40BC7F
square
#4140BC #BC407D #BBBC40 #40BC7F
split-complementary
#4140BC #BC7F40 #7DBC40
monochromatic
#212161 #31308E #4140BC #6D6CCD #9A9ADD

Accessibility & contrast

On white

7.82
#4140BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4140BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140BC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140BC#FFFFFF#000000##FFFFFF
##4140BC1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4140bc;
/* rgb */ color: rgb(65, 64, 188);
/* oklch */ color: oklch(45.4% 0.189 276.2);
Tailwind
colors: {
  custom: {
    50: '#8475d1',
    500: '#4140bc',
    950: '#000000',
  },
}
SCSS
$custom: #4140bc;
$custom-light: #8475d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4140bc",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 240.484,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.18886,
    "h": 276.2
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#4140BC
secondary
#C8C98F
accent
#D94FD8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4140BC

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

Preview Lab → · Contrast checker → · Palette generator →

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