#4157BE#4157BE

#4157BE is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.8% C 0.163 H 270.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#4157BE
RGBrgb(65, 87, 190)
HSLhsl(229, 49%, 50%)
HSVhsv(229, 66%, 75%)
CMYKcmyk(65.8%, 54.2%, 0%, 25.5%)
CIE-LABlab(40.67, 25.23, -56.78)
CIE-LCHlch(40.67, 62.13, 293.96°)
OKLaboklab(49.81% 0.001 -0.1631)
OKLCHoklch(49.81% 0.163 270.3)
XYZxyz(14.8793, 11.6566, 50.1710)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157BE #BEA841
analogous
#4196BE #4157BE #6941BE
triadic
#4157BE #BE4157 #57BE41
tetradic
#4157BE #BE4196 #BEA841 #41BE69
square
#4157BE #BE4196 #BEA841 #41BE69
split-complementary
#4157BE #BE6941 #96BE41
monochromatic
#222D63 #314290 #4157BE #6F7FCE #9CA8DD

Accessibility & contrast

On white

6.30
#4157BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4157BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157BE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157BE#FFFFFF#000000##FFFFFF
##4157BE1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0966C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4157be;
/* rgb */ color: rgb(65, 87, 190);
/* oklch */ color: oklch(49.8% 0.163 270.3);
Tailwind
colors: {
  custom: {
    50: '#8386d2',
    500: '#4157be',
    950: '#000000',
  },
}
SCSS
$custom: #4157be;
$custom-light: #8386d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4157be",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 229.44,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.49805,
    "c": 0.16315,
    "h": 270.3
  },
  "luminance": 0.11658
}

Semantic roles & 50–950 ramp

primary
#4157BE
secondary
#C9C091
accent
#C04FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4157BE

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

Preview Lab → · Contrast checker → · Palette generator →

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