#4156C7#4156C7

#4156C7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.177 H 270.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#4156C7
RGBrgb(65, 86, 199)
HSLhsl(231, 54%, 52%)
HSVhsv(231, 67%, 78%)
CMYKcmyk(67.3%, 56.8%, 0%, 22%)
CIE-LABlab(41.06, 29.05, -61.37)
CIE-LCHlch(41.06, 67.90, 295.33°)
OKLaboklab(50.31% 0.0023 -0.1767)
OKLCHoklch(50.31% 0.177 270.7)
XYZxyz(15.8131, 11.9014, 55.4856)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156C7 #C7B241
analogous
#4199C7 #4156C7 #6F41C7
triadic
#4156C7 #C74156 #56C741
tetradic
#4156C7 #C74199 #C7B241 #41C76F
square
#4156C7 #C74199 #C7B241 #41C76F
split-complementary
#4156C7 #C76F41 #99C741
monochromatic
#202C6D #2E3F9D #4156C7 #7080D5 #A0AAE3

Accessibility & contrast

On white

6.21
#4156C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#4156C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156C7
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156C7#FFFFFF#000000##FFFFFF
##4156C71.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4156c7;
/* rgb */ color: rgb(65, 86, 199);
/* oklch */ color: oklch(50.3% 0.177 270.7);
Tailwind
colors: {
  custom: {
    50: '#8585d9',
    500: '#4156c7',
    950: '#000000',
  },
}
SCSS
$custom: #4156c7;
$custom-light: #8585d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4156c7",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 230.597,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50307,
    "c": 0.17669,
    "h": 270.7
  },
  "luminance": 0.11903
}

Semantic roles & 50–950 ramp

primary
#4156C7
secondary
#CFC695
accent
#C74ADE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4156C7

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

Preview Lab → · Contrast checker → · Palette generator →

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