#4156BA#4156BA

#4156BA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.3% C 0.159 H 270.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#4156BA
RGBrgb(65, 86, 186)
HSLhsl(230, 48%, 49%)
HSVhsv(230, 65%, 73%)
CMYKcmyk(65.1%, 53.8%, 0%, 27.1%)
CIE-LABlab(40.12, 24.45, -55.32)
CIE-LCHlch(40.12, 60.49, 293.85°)
OKLaboklab(49.31% 0.0016 -0.1589)
OKLCHoklch(49.31% 0.159 270.6)
XYZxyz(14.3677, 11.3233, 47.8733)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156BA #BAA541
analogous
#4193BA #4156BA #6941BA
triadic
#4156BA #BA4156 #56BA41
tetradic
#4156BA #BA4193 #BAA541 #41BA69
square
#4156BA #BA4193 #BAA541 #41BA69
split-complementary
#4156BA #BA6941 #93BA41
monochromatic
#212C5F #31418D #4156BA #6C7DCC #9AA5DC

Accessibility & contrast

On white

6.43
#4156BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4156BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156BA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156BA#FFFFFF#000000##FFFFFF
##4156BA1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BD
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4156ba;
/* rgb */ color: rgb(65, 86, 186);
/* oklch */ color: oklch(49.3% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#8285cf',
    500: '#4156ba',
    950: '#000000',
  },
}
SCSS
$custom: #4156ba;
$custom-light: #8285cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4156ba",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 229.587,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49305,
    "c": 0.1589,
    "h": 270.6
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#4156BA
secondary
#C8BE8F
accent
#C050D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4156BA

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

Preview Lab → · Contrast checker → · Palette generator →

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