#4157C4#4157C4

#4157C4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.171 H 270.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#4157C4
RGBrgb(65, 87, 196)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(66.8%, 55.6%, 0%, 23.1%)
CIE-LABlab(41.10, 27.35, -59.57)
CIE-LCHlch(41.10, 65.55, 294.66°)
OKLaboklab(50.26% 0.0013 -0.1714)
OKLCHoklch(50.26% 0.171 270.4)
XYZxyz(15.5486, 11.9243, 53.6961)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157C4 #C4AE41
analogous
#4198C4 #4157C4 #6C41C4
triadic
#4157C4 #C44157 #57C441
tetradic
#4157C4 #C44198 #C4AE41 #41C46C
square
#4157C4 #C44198 #C4AE41 #41C46C
split-complementary
#4157C4 #C46C41 #98C441
monochromatic
#212D6A #2F4198 #4157C4 #7080D3 #9EAAE1

Accessibility & contrast

On white

6.20
#4157C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#4157C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157C4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157C4#FFFFFF#000000##FFFFFF
##4157C41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4157c4;
/* rgb */ color: rgb(65, 87, 196);
/* oklch */ color: oklch(50.3% 0.171 270.4);
Tailwind
colors: {
  custom: {
    50: '#8486d7',
    500: '#4157c4',
    950: '#000000',
  },
}
SCSS
$custom: #4157c4;
$custom-light: #8486d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4157c4",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 196
  },
  "hsl": {
    "h": 229.924,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50264,
    "c": 0.17137,
    "h": 270.4
  },
  "luminance": 0.11926
}

Semantic roles & 50–950 ramp

primary
#4157C4
secondary
#CDC493
accent
#C44CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4157C4

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

Preview Lab → · Contrast checker → · Palette generator →

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