#4157BF#4157BF

#4157BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.9% C 0.165 H 270.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4157BF
RGBrgb(65, 87, 191)
HSLhsl(230, 50%, 50%)
HSVhsv(230, 66%, 75%)
CMYKcmyk(66%, 54.5%, 0%, 25.1%)
CIE-LABlab(40.74, 25.58, -57.25)
CIE-LCHlch(40.74, 62.70, 294.08°)
OKLaboklab(49.88% 0.001 -0.1645)
OKLCHoklch(49.88% 0.165 270.4)
XYZxyz(14.9890, 11.7004, 50.7486)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157BF #BFA941
analogous
#4196BF #4157BF #6A41BF
triadic
#4157BF #BF4157 #57BF41
tetradic
#4157BF #BF4196 #BFA941 #41BF6A
square
#4157BF #BF4196 #BFA941 #41BF6A
split-complementary
#4157BF #BF6A41 #96BF41
monochromatic
#222D64 #314292 #4157BF #6F7FCE #9DA8DE

Accessibility & contrast

On white

6.29
#4157BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4157BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157BF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157BF#FFFFFF#000000##FFFFFF
##4157BF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0566C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4157bf;
/* rgb */ color: rgb(65, 87, 191);
/* oklch */ color: oklch(49.9% 0.165 270.4);
Tailwind
colors: {
  custom: {
    50: '#8386d3',
    500: '#4157bf',
    950: '#000000',
  },
}
SCSS
$custom: #4157bf;
$custom-light: #8386d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4157bf",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 229.524,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49881,
    "c": 0.16453,
    "h": 270.4
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#4157BF
secondary
#CAC092
accent
#C14FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4157BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4157BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva