#4157AF#4157AF

#4157AF is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.142 H 269.9°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#4157AF
RGBrgb(65, 87, 175)
HSLhsl(228, 46%, 47%)
HSVhsv(228, 63%, 69%)
CMYKcmyk(62.9%, 50.3%, 0%, 31.4%)
CIE-LABlab(39.64, 19.91, -49.63)
CIE-LCHlch(39.64, 53.48, 291.86°)
OKLaboklab(48.7% -0.0003 -0.1421)
OKLCHoklch(48.7% 0.142 269.9)
XYZxyz(13.3234, 11.0342, 41.9768)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157AF #AF9941
analogous
#418EAF #4157AF #6241AF
triadic
#4157AF #AF4157 #57AF41
tetradic
#4157AF #AF418E #AF9941 #41AF62
square
#4157AF #AF418E #AF9941 #41AF62
split-complementary
#4157AF #AF6241 #8EAF41
monochromatic
#202B56 #304182 #4157AF #677AC6 #93A1D7

Accessibility & contrast

On white

6.55
#4157AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4157AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157AF
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157AF#FFFFFF#000000##FFFFFF
##4157AF1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B2
Deuteranopia (green-blind)
#0C59AD
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4157af;
/* rgb */ color: rgb(65, 87, 175);
/* oklch */ color: oklch(48.7% 0.142 269.9);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4157af',
    950: '#000000',
  },
}
SCSS
$custom: #4157af;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4157af",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 228,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.14213,
    "h": 269.9
  },
  "luminance": 0.11035
}

Semantic roles & 50–950 ramp

primary
#4157AF
secondary
#C2B789
accent
#BB52D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4157AF

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

Preview Lab → · Contrast checker → · Palette generator →

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