#4156B2#4156B2

#4156B2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.148 H 270.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4156B2
RGBrgb(65, 86, 178)
HSLhsl(229, 47%, 48%)
HSVhsv(229, 63%, 70%)
CMYKcmyk(63.5%, 51.7%, 0%, 30.2%)
CIE-LABlab(39.57, 21.62, -51.52)
CIE-LCHlch(39.57, 55.87, 292.77°)
OKLaboklab(48.71% 0.001 -0.1477)
OKLCHoklch(48.71% 0.148 270.4)
XYZxyz(13.5409, 10.9926, 43.5190)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156B2 #B29D41
analogous
#418EB2 #4156B2 #6541B2
triadic
#4156B2 #B24156 #56B241
tetradic
#4156B2 #B2418E #B29D41 #41B265
square
#4156B2 #B2418E #B29D41 #41B265
split-complementary
#4156B2 #B26541 #8EB241
monochromatic
#202B58 #314085 #4156B2 #687AC8 #95A2D8

Accessibility & contrast

On white

6.56
#4156B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4156B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156B2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156B2#FFFFFF#000000##FFFFFF
##4156B21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4156b2;
/* rgb */ color: rgb(65, 86, 178);
/* oklch */ color: oklch(48.7% 0.148 270.4);
Tailwind
colors: {
  custom: {
    50: '#8185ca',
    500: '#4156b2',
    950: '#000000',
  },
}
SCSS
$custom: #4156b2;
$custom-light: #8185ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4156b2",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 228.85,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48713,
    "c": 0.14768,
    "h": 270.4
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#4156B2
secondary
#C4B98B
accent
#BE52D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4156B2

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

Preview Lab → · Contrast checker → · Palette generator →

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