#4157D4#4157D4

#4157D4 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.5% C 0.193 H 270.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#4157D4
RGBrgb(65, 87, 212)
HSLhsl(231, 63%, 54%)
HSVhsv(231, 69%, 83%)
CMYKcmyk(69.3%, 59%, 0%, 16.9%)
CIE-LABlab(42.30, 33.00, -66.85)
CIE-LCHlch(42.30, 74.55, 296.27°)
OKLaboklab(51.54% 0.0016 -0.1928)
OKLCHoklch(51.54% 0.193 270.5)
XYZxyz(17.4678, 12.6920, 63.8038)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157D4 #D4BE41
analogous
#41A1D4 #4157D4 #7441D4
triadic
#4157D4 #D44157 #57D441
tetradic
#4157D4 #D441A1 #D4BE41 #41D474
square
#4157D4 #D441A1 #D4BE41 #41D474
split-complementary
#4157D4 #D47441 #A1D441
monochromatic
#1D2B7E #283CB0 #4157D4 #7383DF #A5AFEB

Accessibility & contrast

On white

5.93
#4157D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4157D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157D4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157D4#FFFFFF#000000##FFFFFF
##4157D41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#00768D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4157d4;
/* rgb */ color: rgb(65, 87, 212);
/* oklch */ color: oklch(51.5% 0.193 270.5);
Tailwind
colors: {
  custom: {
    50: '#8886e2',
    500: '#4157d4',
    950: '#000000',
  },
}
SCSS
$custom: #4157d4;
$custom-light: #8886e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4157d4",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 212
  },
  "hsl": {
    "h": 231.02,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51537,
    "c": 0.19279,
    "h": 270.5
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#4157D4
secondary
#D8CE99
accent
#CE42E6
background
#F9F8FE
surface
#F1EFFC
border
#CBCAD5
text
#0D0B15
muted
#7E7C84

Preview Lab

Preview with #4157D4

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

Preview Lab → · Contrast checker → · Palette generator →

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