#4156CA#4156CA

#4156CA is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.181 H 270.7°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#4156CA
RGBrgb(65, 86, 202)
HSLhsl(231, 56%, 52%)
HSVhsv(231, 68%, 79%)
CMYKcmyk(67.8%, 57.4%, 0%, 20.8%)
CIE-LABlab(41.28, 30.11, -62.74)
CIE-LCHlch(41.28, 69.60, 295.64°)
OKLaboklab(50.54% 0.0023 -0.1807)
OKLCHoklch(50.54% 0.181 270.7)
XYZxyz(16.1648, 12.0421, 57.3381)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156CA #CAB541
analogous
#419BCA #4156CA #7141CA
triadic
#4156CA #CA4156 #56CA41
tetradic
#4156CA #CA419B #CAB541 #41CA71
square
#4156CA #CA419B #CAB541 #41CA71
split-complementary
#4156CA #CA7141 #9BCA41
monochromatic
#202C71 #2D3FA1 #4156CA #7181D7 #A1ABE5

Accessibility & contrast

On white

6.16
#4156CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#4156CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156CA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156CA#FFFFFF#000000##FFFFFF
##4156CA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4156ca;
/* rgb */ color: rgb(65, 86, 202);
/* oklch */ color: oklch(50.5% 0.181 270.7);
Tailwind
colors: {
  custom: {
    50: '#8685db',
    500: '#4156ca',
    950: '#000000',
  },
}
SCSS
$custom: #4156ca;
$custom-light: #8685db;
$custom-dark: #000000;
JSON
{
  "hex": "#4156ca",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 230.803,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50544,
    "c": 0.18072,
    "h": 270.7
  },
  "luminance": 0.12044
}

Semantic roles & 50–950 ramp

primary
#4156CA
secondary
#D1C896
accent
#C848E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4156CA

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

Preview Lab → · Contrast checker → · Palette generator →

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