#4140B2#4140B2

#4140B2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.176 H 276.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#4140B2
RGBrgb(65, 64, 178)
HSLhsl(241, 47%, 47%)
HSVhsv(241, 64%, 70%)
CMYKcmyk(63.5%, 64%, 0%, 30.2%)
CIE-LABlab(33.99, 35.68, -60.57)
CIE-LCHlch(33.99, 70.29, 300.50°)
OKLaboklab(44.56% 0.0212 -0.1745)
OKLCHoklch(44.56% 0.176 276.9)
XYZxyz(12.0466, 8.0040, 43.0209)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4140B2 #B1B240
analogous
#4078B2 #4140B2 #7A40B2
triadic
#4140B2 #B24140 #40B241
tetradic
#4140B2 #B24078 #B1B240 #40B27A
square
#4140B2 #B24078 #B1B240 #40B27A
split-complementary
#4140B2 #B27A40 #78B240
monochromatic
#202058 #313085 #4140B2 #6867C8 #9594D8

Accessibility & contrast

On white

8.07
#4140B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4140B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4140B2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4140B2#FFFFFF#000000##FFFFFF
##4140B21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4140b2;
/* rgb */ color: rgb(65, 64, 178);
/* oklch */ color: oklch(44.6% 0.176 276.9);
Tailwind
colors: {
  custom: {
    50: '#8275ca',
    500: '#4140b2',
    950: '#000000',
  },
}
SCSS
$custom: #4140b2;
$custom-light: #8275ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4140b2",
  "rgb": {
    "r": 65,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 240.526,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44564,
    "c": 0.17579,
    "h": 276.9
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#4140B2
secondary
#C3C48A
accent
#D751D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4140B2

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

Preview Lab → · Contrast checker → · Palette generator →

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