#4159C6#4159C6

#4159C6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.8% C 0.172 H 269.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#4159C6
RGBrgb(65, 89, 198)
HSLhsl(229, 54%, 52%)
HSVhsv(229, 67%, 78%)
CMYKcmyk(67.2%, 55.1%, 0%, 22.4%)
CIE-LABlab(41.76, 26.79, -59.66)
CIE-LCHlch(41.76, 65.39, 294.18°)
OKLaboklab(50.81% -0.0003 -0.1716)
OKLCHoklch(50.81% 0.172 269.9)
XYZxyz(15.9419, 12.3443, 54.9577)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4159C6 #C6AE41
analogous
#419CC6 #4159C6 #6C41C6
triadic
#4159C6 #C64159 #59C641
tetradic
#4159C6 #C6419C #C6AE41 #41C66C
square
#4159C6 #C6419C #C6AE41 #41C66C
split-complementary
#4159C6 #C66C41 #9CC641
monochromatic
#202E6C #2F429B #4159C6 #7082D4 #9FABE2

Accessibility & contrast

On white

6.05
#4159C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4159C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4159C6
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4159C6#FFFFFF#000000##FFFFFF
##4159C61.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CA
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4159c6;
/* rgb */ color: rgb(65, 89, 198);
/* oklch */ color: oklch(50.8% 0.172 269.9);
Tailwind
colors: {
  custom: {
    50: '#8587d8',
    500: '#4159c6',
    950: '#000000',
  },
}
SCSS
$custom: #4159c6;
$custom-light: #8587d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4159c6",
  "rgb": {
    "r": 65,
    "g": 89,
    "b": 198
  },
  "hsl": {
    "h": 229.173,
    "s": 53.846,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50807,
    "c": 0.1716,
    "h": 269.9
  },
  "luminance": 0.12346
}

Semantic roles & 50–950 ramp

primary
#4159C6
secondary
#CFC494
accent
#C34BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4159C6

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

Preview Lab → · Contrast checker → · Palette generator →

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