#4159C7#4159C7

#4159C7 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.9% C 0.173 H 269.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#4159C7
RGBrgb(65, 89, 199)
HSLhsl(229, 54%, 52%)
HSVhsv(229, 67%, 78%)
CMYKcmyk(67.3%, 55.3%, 0%, 22%)
CIE-LABlab(41.83, 27.14, -60.12)
CIE-LCHlch(41.83, 65.96, 294.30°)
OKLaboklab(50.88% -0.0003 -0.173)
OKLCHoklch(50.88% 0.173 269.9)
XYZxyz(16.0576, 12.3906, 55.5671)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4159C7 #C7AF41
analogous
#419CC7 #4159C7 #6C41C7
triadic
#4159C7 #C74159 #59C741
tetradic
#4159C7 #C7419C #C7AF41 #41C76C
square
#4159C7 #C7419C #C7AF41 #41C76C
split-complementary
#4159C7 #C76C41 #9CC741
monochromatic
#202E6D #2E429D #4159C7 #7082D5 #A0ACE3

Accessibility & contrast

On white

6.04
#4159C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#4159C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4159C7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4159C7#FFFFFF#000000##FFFFFF
##4159C71.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4159c7;
/* rgb */ color: rgb(65, 89, 199);
/* oklch */ color: oklch(50.9% 0.173 269.9);
Tailwind
colors: {
  custom: {
    50: '#8587d9',
    500: '#4159c7',
    950: '#000000',
  },
}
SCSS
$custom: #4159c7;
$custom-light: #8587d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4159c7",
  "rgb": {
    "r": 65,
    "g": 89,
    "b": 199
  },
  "hsl": {
    "h": 229.254,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50884,
    "c": 0.17296,
    "h": 269.9
  },
  "luminance": 0.12392
}

Semantic roles & 50–950 ramp

primary
#4159C7
secondary
#CFC595
accent
#C34ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4159C7

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

Preview Lab → · Contrast checker → · Palette generator →

#4159C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva