#4157C2#4157C2

#4157C2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.1% C 0.169 H 270.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4157C2
RGBrgb(65, 87, 194)
HSLhsl(230, 51%, 51%)
HSVhsv(230, 66%, 76%)
CMYKcmyk(66.5%, 55.2%, 0%, 23.9%)
CIE-LABlab(40.95, 26.65, -58.64)
CIE-LCHlch(40.95, 64.41, 294.44°)
OKLaboklab(50.11% 0.0012 -0.1686)
OKLCHoklch(50.11% 0.169 270.4)
XYZxyz(15.3225, 11.8338, 52.5051)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157C2 #C2AC41
analogous
#4198C2 #4157C2 #6B41C2
triadic
#4157C2 #C24157 #57C241
tetradic
#4157C2 #C24198 #C2AC41 #41C26B
square
#4157C2 #C24198 #C2AC41 #41C26B
split-complementary
#4157C2 #C26B41 #98C241
monochromatic
#212D67 #304196 #4157C2 #6F80D1 #9EA9E0

Accessibility & contrast

On white

6.24
#4157C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4157C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157C2
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157C2#FFFFFF#000000##FFFFFF
##4157C21.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4157c2;
/* rgb */ color: rgb(65, 87, 194);
/* oklch */ color: oklch(50.1% 0.169 270.4);
Tailwind
colors: {
  custom: {
    50: '#8486d5',
    500: '#4157c2',
    950: '#000000',
  },
}
SCSS
$custom: #4157c2;
$custom-light: #8486d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4157c2",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 194
  },
  "hsl": {
    "h": 229.767,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5011,
    "c": 0.16864,
    "h": 270.4
  },
  "luminance": 0.11835
}

Semantic roles & 50–950 ramp

primary
#4157C2
secondary
#CCC293
accent
#C34DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4157C2

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

Preview Lab → · Contrast checker → · Palette generator →

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