#4157BA#4157BA

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

Color values

HEX#4157BA
RGBrgb(65, 87, 186)
HSLhsl(229, 48%, 49%)
HSVhsv(229, 65%, 73%)
CMYKcmyk(65.1%, 53.2%, 0%, 27.1%)
CIE-LABlab(40.38, 23.81, -54.90)
CIE-LCHlch(40.38, 59.84, 293.45°)
OKLaboklab(49.5% 0.0007 -0.1576)
OKLCHoklch(49.5% 0.158 270.3)
XYZxyz(14.4481, 11.4841, 47.9001)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157BA #BAA441
analogous
#4194BA #4157BA #6841BA
triadic
#4157BA #BA4157 #57BA41
tetradic
#4157BA #BA4194 #BAA441 #41BA68
square
#4157BA #BA4194 #BAA441 #41BA68
split-complementary
#4157BA #BA6841 #94BA41
monochromatic
#212D5F #31428D #4157BA #6C7ECC #9AA6DC

Accessibility & contrast

On white

6.37
#4157BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4157BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157BA
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157BA#FFFFFF#000000##FFFFFF
##4157BA1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1665BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4157ba;
/* rgb */ color: rgb(65, 87, 186);
/* oklch */ color: oklch(49.5% 0.158 270.3);
Tailwind
colors: {
  custom: {
    50: '#8286cf',
    500: '#4157ba',
    950: '#000000',
  },
}
SCSS
$custom: #4157ba;
$custom-light: #8286cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4157ba",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 229.091,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49504,
    "c": 0.15761,
    "h": 270.3
  },
  "luminance": 0.11485
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4157BA

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

Preview Lab → · Contrast checker → · Palette generator →

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