#4157D1#4157D1

#4157D1 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.3% C 0.189 H 270.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4157D1
RGBrgb(65, 87, 209)
HSLhsl(231, 61%, 54%)
HSVhsv(231, 69%, 82%)
CMYKcmyk(68.9%, 58.4%, 0%, 18%)
CIE-LABlab(42.06, 31.95, -65.51)
CIE-LCHlch(42.06, 72.88, 296.00°)
OKLaboklab(51.29% 0.0016 -0.1888)
OKLCHoklch(51.29% 0.189 270.5)
XYZxyz(17.0929, 12.5420, 61.8293)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157D1 #D1BB41
analogous
#419FD1 #4157D1 #7341D1
triadic
#4157D1 #D14157 #57D141
tetradic
#4157D1 #D1419F #D1BB41 #41D173
square
#4157D1 #D1419F #D1BB41 #41D173
split-complementary
#4157D1 #D17341 #9FD141
monochromatic
#1E2C7A #293DAB #4157D1 #7283DD #A4AEE9

Accessibility & contrast

On white

5.98
#4157D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4157D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157D1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157D1#FFFFFF#000000##FFFFFF
##4157D11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD5
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4157d1;
/* rgb */ color: rgb(65, 87, 209);
/* oklch */ color: oklch(51.3% 0.189 270.5);
Tailwind
colors: {
  custom: {
    50: '#8786e0',
    500: '#4157d1',
    950: '#000000',
  },
}
SCSS
$custom: #4157d1;
$custom-light: #8786e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4157d1",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 209
  },
  "hsl": {
    "h": 230.833,
    "s": 61.017,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51293,
    "c": 0.18883,
    "h": 270.5
  },
  "luminance": 0.12544
}

Semantic roles & 50–950 ramp

primary
#4157D1
secondary
#D6CC98
accent
#CC44E4
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4157D1

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

Preview Lab → · Contrast checker → · Palette generator →

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