#4156C4#4156C4

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

Color values

HEX#4156C4
RGBrgb(65, 86, 196)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(66.8%, 56.1%, 0%, 23.1%)
CIE-LABlab(40.84, 27.99, -59.99)
CIE-LCHlch(40.84, 66.20, 295.02°)
OKLaboklab(50.07% 0.0022 -0.1726)
OKLCHoklch(50.07% 0.173 270.7)
XYZxyz(15.4682, 11.7635, 53.6693)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156C4 #C4AF41
analogous
#4197C4 #4156C4 #6D41C4
triadic
#4156C4 #C44156 #56C441
tetradic
#4156C4 #C44197 #C4AF41 #41C46D
square
#4156C4 #C44197 #C4AF41 #41C46D
split-complementary
#4156C4 #C46D41 #97C441
monochromatic
#212D6A #2F4098 #4156C4 #7080D3 #9EA9E1

Accessibility & contrast

On white

6.26
#4156C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4156C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156C4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156C4#FFFFFF#000000##FFFFFF
##4156C41.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4156c4;
/* rgb */ color: rgb(65, 86, 196);
/* oklch */ color: oklch(50.1% 0.173 270.7);
Tailwind
colors: {
  custom: {
    50: '#8485d7',
    500: '#4156c4',
    950: '#000000',
  },
}
SCSS
$custom: #4156c4;
$custom-light: #8485d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4156c4",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 230.382,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50071,
    "c": 0.17263,
    "h": 270.7
  },
  "luminance": 0.11765
}

Semantic roles & 50–950 ramp

primary
#4156C4
secondary
#CDC493
accent
#C54CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4156C4

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

Preview Lab → · Contrast checker → · Palette generator →

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