#4156C5#4156C5

#4156C5 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.1% C 0.174 H 270.7°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#4156C5
RGBrgb(65, 86, 197)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(67%, 56.3%, 0%, 22.7%)
CIE-LABlab(40.91, 28.35, -60.45)
CIE-LCHlch(40.91, 66.77, 295.12°)
OKLaboklab(50.15% 0.0022 -0.174)
OKLCHoklch(50.15% 0.174 270.7)
XYZxyz(15.5824, 11.8092, 54.2707)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156C5 #C5B041
analogous
#4198C5 #4156C5 #6E41C5
triadic
#4156C5 #C54156 #56C541
tetradic
#4156C5 #C54198 #C5B041 #41C56E
square
#4156C5 #C54198 #C5B041 #41C56E
split-complementary
#4156C5 #C56E41 #98C541
monochromatic
#212C6B #2F409A #4156C5 #7080D3 #9FA9E2

Accessibility & contrast

On white

6.25
#4156C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4156C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156C5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156C5#FFFFFF#000000##FFFFFF
##4156C51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4156c5;
/* rgb */ color: rgb(65, 86, 197);
/* oklch */ color: oklch(50.1% 0.174 270.7);
Tailwind
colors: {
  custom: {
    50: '#8585d7',
    500: '#4156c5',
    950: '#000000',
  },
}
SCSS
$custom: #4156c5;
$custom-light: #8585d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4156c5",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 230.455,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50149,
    "c": 0.17398,
    "h": 270.7
  },
  "luminance": 0.11811
}

Semantic roles & 50–950 ramp

primary
#4156C5
secondary
#CEC594
accent
#C54BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4156C5

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

Preview Lab → · Contrast checker → · Palette generator →

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