#4157B2#4157B2

#4157B2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.9% C 0.146 H 270.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4157B2
RGBrgb(65, 87, 178)
HSLhsl(228, 47%, 48%)
HSVhsv(228, 63%, 70%)
CMYKcmyk(63.5%, 51.1%, 0%, 30.2%)
CIE-LABlab(39.84, 20.98, -51.08)
CIE-LCHlch(39.84, 55.22, 292.33°)
OKLaboklab(48.92% 0 -0.1464)
OKLCHoklch(48.92% 0.146 270)
XYZxyz(13.6213, 11.1534, 43.5458)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157B2 #B29C41
analogous
#418FB2 #4157B2 #6441B2
triadic
#4157B2 #B24157 #57B241
tetradic
#4157B2 #B2418F #B29C41 #41B264
square
#4157B2 #B2418F #B29C41 #41B264
split-complementary
#4157B2 #B26441 #8FB241
monochromatic
#202B58 #314185 #4157B2 #687BC8 #95A2D8

Accessibility & contrast

On white

6.50
#4157B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4157B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157B2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157B2#FFFFFF#000000##FFFFFF
##4157B21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4157b2;
/* rgb */ color: rgb(65, 87, 178);
/* oklch */ color: oklch(48.9% 0.146 270.0);
Tailwind
colors: {
  custom: {
    50: '#8186ca',
    500: '#4157b2',
    950: '#000000',
  },
}
SCSS
$custom: #4157b2;
$custom-light: #8186ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4157b2",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 228.319,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48917,
    "c": 0.14639,
    "h": 270
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#4157B2
secondary
#C4B98B
accent
#BC52D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4157B2

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

Preview Lab → · Contrast checker → · Palette generator →

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