#4157BB#4157BB

#4157BB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.159 H 270.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#4157BB
RGBrgb(65, 87, 187)
HSLhsl(229, 48%, 49%)
HSVhsv(229, 65%, 73%)
CMYKcmyk(65.2%, 53.5%, 0%, 26.7%)
CIE-LABlab(40.45, 24.17, -55.37)
CIE-LCHlch(40.45, 60.41, 293.58°)
OKLaboklab(49.58% 0.0008 -0.159)
OKLCHoklch(49.58% 0.159 270.3)
XYZxyz(14.5548, 11.5268, 48.4619)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157BB #BBA541
analogous
#4194BB #4157BB #6841BB
triadic
#4157BB #BB4157 #57BB41
tetradic
#4157BB #BB4194 #BBA541 #41BB68
square
#4157BB #BB4194 #BBA541 #41BB68
split-complementary
#4157BB #BB6841 #94BB41
monochromatic
#212D60 #31428E #4157BB #6D7ECC #9AA6DC

Accessibility & contrast

On white

6.35
#4157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157BB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157BB#FFFFFF#000000##FFFFFF
##4157BB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1365BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4157bb;
/* rgb */ color: rgb(65, 87, 187);
/* oklch */ color: oklch(49.6% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#8386d0',
    500: '#4157bb',
    950: '#000000',
  },
}
SCSS
$custom: #4157bb;
$custom-light: #8386d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4157bb",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 229.18,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.159,
    "h": 270.3
  },
  "luminance": 0.11528
}

Semantic roles & 50–950 ramp

primary
#4157BB
secondary
#C8BE90
accent
#BF50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #4157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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