#4156CF#4156CF

#4156CF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.9% C 0.187 H 270.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4156CF
RGBrgb(65, 86, 207)
HSLhsl(231, 60%, 53%)
HSVhsv(231, 69%, 81%)
CMYKcmyk(68.6%, 58.5%, 0%, 18.8%)
CIE-LABlab(41.66, 31.87, -65.01)
CIE-LCHlch(41.66, 72.40, 296.12°)
OKLaboklab(50.95% 0.0024 -0.1874)
OKLCHoklch(50.95% 0.187 270.7)
XYZxyz(16.7664, 12.2828, 60.5066)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156CF #CFBA41
analogous
#419DCF #4156CF #7341CF
triadic
#4156CF #CF4156 #56CF41
tetradic
#4156CF #CF419D #CFBA41 #41CF73
square
#4156CF #CF419D #CFBA41 #41CF73
split-complementary
#4156CF #CF7341 #9DCF41
monochromatic
#1E2B77 #2B3DA8 #4156CF #7281DB #A3ADE8

Accessibility & contrast

On white

6.07
#4156CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4156CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156CF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156CF#FFFFFF#000000##FFFFFF
##4156CF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4156cf;
/* rgb */ color: rgb(65, 86, 207);
/* oklch */ color: oklch(50.9% 0.187 270.7);
Tailwind
colors: {
  custom: {
    50: '#8785df',
    500: '#4156cf',
    950: '#000000',
  },
}
SCSS
$custom: #4156cf;
$custom-light: #8785df;
$custom-dark: #000000;
JSON
{
  "hex": "#4156cf",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 231.127,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50946,
    "c": 0.1874,
    "h": 270.7
  },
  "luminance": 0.12284
}

Semantic roles & 50–950 ramp

primary
#4156CF
secondary
#D4CB97
accent
#CB45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4156CF

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

Preview Lab → · Contrast checker → · Palette generator →

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