#4156CC#4156CC

#4156CC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.7% C 0.183 H 270.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#4156CC
RGBrgb(65, 86, 204)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.1%, 57.8%, 0%, 20%)
CIE-LABlab(41.43, 30.82, -63.65)
CIE-LCHlch(41.43, 70.72, 295.83°)
OKLaboklab(50.7% 0.0024 -0.1834)
OKLCHoklch(50.7% 0.183 270.7)
XYZxyz(16.4031, 12.1375, 58.5933)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156CC #CCB741
analogous
#419CCC #4156CC #7141CC
triadic
#4156CC #CC4156 #56CC41
tetradic
#4156CC #CC419C #CCB741 #41CC71
square
#4156CC #CC419C #CCB741 #41CC71
split-complementary
#4156CC #CC7141 #9CCC41
monochromatic
#1F2C74 #2C3EA4 #4156CC #7181D9 #A1ACE6

Accessibility & contrast

On white

6.13
#4156CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4156CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156CC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156CC#FFFFFF#000000##FFFFFF
##4156CC1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4156cc;
/* rgb */ color: rgb(65, 86, 204);
/* oklch */ color: oklch(50.7% 0.183 270.7);
Tailwind
colors: {
  custom: {
    50: '#8685dc',
    500: '#4156cc',
    950: '#000000',
  },
}
SCSS
$custom: #4156cc;
$custom-light: #8685dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4156cc",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 230.935,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.18341,
    "h": 270.7
  },
  "luminance": 0.12139
}

Semantic roles & 50–950 ramp

primary
#4156CC
secondary
#D3C996
accent
#CA47E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4156CC

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

Preview Lab → · Contrast checker → · Palette generator →

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