#4156CB#4156CB

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

Color values

HEX#4156CB
RGBrgb(65, 86, 203)
HSLhsl(231, 57%, 53%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68%, 57.6%, 0%, 20.4%)
CIE-LABlab(41.36, 30.47, -63.20)
CIE-LCHlch(41.36, 70.16, 295.74°)
OKLaboklab(50.62% 0.0023 -0.182)
OKLCHoklch(50.62% 0.182 270.7)
XYZxyz(16.2836, 12.0896, 57.9637)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156CB #CBB641
analogous
#419BCB #4156CB #7141CB
triadic
#4156CB #CB4156 #56CB41
tetradic
#4156CB #CB419B #CBB641 #41CB71
square
#4156CB #CB419B #CBB641 #41CB71
split-complementary
#4156CB #CB7141 #9BCB41
monochromatic
#1F2C72 #2C3EA2 #4156CB #7181D8 #A1ABE5

Accessibility & contrast

On white

6.14
#4156CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4156CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156CB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156CB#FFFFFF#000000##FFFFFF
##4156CB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4156cb;
/* rgb */ color: rgb(65, 86, 203);
/* oklch */ color: oklch(50.6% 0.182 270.7);
Tailwind
colors: {
  custom: {
    50: '#8685dc',
    500: '#4156cb',
    950: '#000000',
  },
}
SCSS
$custom: #4156cb;
$custom-light: #8685dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4156cb",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 230.87,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.18207,
    "h": 270.7
  },
  "luminance": 0.12091
}

Semantic roles & 50–950 ramp

primary
#4156CB
secondary
#D2C996
accent
#C948E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4156CB

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

Preview Lab → · Contrast checker → · Palette generator →

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