#4140AB#4140AB

#4140AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.166 H 277.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#4140AB
RGBrgb(65, 64, 171)
HSLhsl(241, 46%, 46%)
HSVhsv(241, 63%, 67%)
CMYKcmyk(62%, 62.6%, 0%, 32.9%)
CIE-LABlab(33.41, 33.31, -57.34)
CIE-LCHlch(33.41, 66.31, 300.16°)
OKLaboklab(43.96% 0.0217 -0.165)
OKLCHoklch(43.96% 0.166 277.5)
XYZxyz(11.3617, 7.7300, 39.4135)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140AB #AAAB40
analogous
#4074AB #4140AB #7640AB
triadic
#4140AB #AB4140 #40AB41
tetradic
#4140AB #AB4074 #AAAB40 #40AB76
square
#4140AB #AB4074 #AAAB40 #40AB76
split-complementary
#4140AB #AB7640 #74AB40
monochromatic
#1F1F52 #302F7E #4140AB #6463C5 #9190D5

Accessibility & contrast

On white

8.25
#4140AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4140AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140AB
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140AB#FFFFFF#000000##FFFFFF
##4140AB1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4140ab;
/* rgb */ color: rgb(65, 64, 171);
/* oklch */ color: oklch(44.0% 0.166 277.5);
Tailwind
colors: {
  custom: {
    50: '#8175c5',
    500: '#4140ab',
    950: '#000000',
  },
}
SCSS
$custom: #4140ab;
$custom-light: #8175c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4140ab",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 240.561,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43962,
    "c": 0.16645,
    "h": 277.5
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#4140AB
secondary
#C0C186
accent
#D553D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4140AB

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

Preview Lab → · Contrast checker → · Palette generator →

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