#4157C5#4157C5

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

Color values

HEX#4157C5
RGBrgb(65, 87, 197)
HSLhsl(230, 53%, 51%)
HSVhsv(230, 67%, 77%)
CMYKcmyk(67%, 55.8%, 0%, 22.7%)
CIE-LABlab(41.17, 27.71, -60.03)
CIE-LCHlch(41.17, 66.12, 294.78°)
OKLaboklab(50.34% 0.0013 -0.1727)
OKLCHoklch(50.34% 0.173 270.4)
XYZxyz(15.6628, 11.9700, 54.2975)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157C5 #C5AF41
analogous
#4199C5 #4157C5 #6D41C5
triadic
#4157C5 #C54157 #57C541
tetradic
#4157C5 #C54199 #C5AF41 #41C56D
square
#4157C5 #C54199 #C5AF41 #41C56D
split-complementary
#4157C5 #C56D41 #99C541
monochromatic
#212D6B #2F419A #4157C5 #7080D3 #9FAAE2

Accessibility & contrast

On white

6.19
#4157C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4157C5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157C5#FFFFFF#000000##FFFFFF
##4157C51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4157c5;
/* rgb */ color: rgb(65, 87, 197);
/* oklch */ color: oklch(50.3% 0.173 270.4);
Tailwind
colors: {
  custom: {
    50: '#8586d7',
    500: '#4157c5',
    950: '#000000',
  },
}
SCSS
$custom: #4157c5;
$custom-light: #8586d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4157c5",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 197
  },
  "hsl": {
    "h": 230,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.17274,
    "h": 270.4
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

primary
#4157C5
secondary
#CEC494
accent
#C44BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4157C5

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

Preview Lab → · Contrast checker → · Palette generator →

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