#4156CD#4156CD

#4156CD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.185 H 270.7°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#4156CD
RGBrgb(65, 86, 205)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.3%, 58%, 0%, 19.6%)
CIE-LABlab(41.51, 31.17, -64.11)
CIE-LCHlch(41.51, 71.28, 295.93°)
OKLaboklab(50.78% 0.0024 -0.1847)
OKLCHoklch(50.78% 0.185 270.7)
XYZxyz(16.5235, 12.1856, 59.2270)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4156CD #CDB841
analogous
#419CCD #4156CD #7241CD
triadic
#4156CD #CD4156 #56CD41
tetradic
#4156CD #CD419C #CDB841 #41CD72
square
#4156CD #CD419C #CDB841 #41CD72
split-complementary
#4156CD #CD7241 #9CCD41
monochromatic
#1F2C75 #2C3EA5 #4156CD #7181DA #A2ACE6

Accessibility & contrast

On white

6.11
#4156CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4156CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4156CD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4156CD#FFFFFF#000000##FFFFFF
##4156CD1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4156cd;
/* rgb */ color: rgb(65, 86, 205);
/* oklch */ color: oklch(50.8% 0.185 270.7);
Tailwind
colors: {
  custom: {
    50: '#8685dd',
    500: '#4156cd',
    950: '#000000',
  },
}
SCSS
$custom: #4156cd;
$custom-light: #8685dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4156cd",
  "rgb": {
    "r": 65,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 231,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50784,
    "c": 0.18474,
    "h": 270.7
  },
  "luminance": 0.12187
}

Semantic roles & 50–950 ramp

primary
#4156CD
secondary
#D3CA97
accent
#CA46E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4156CD

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

Preview Lab → · Contrast checker → · Palette generator →

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