#4157C8#4157C8

#4157C8 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.177 H 270.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#4157C8
RGBrgb(65, 87, 200)
HSLhsl(230, 55%, 52%)
HSVhsv(230, 68%, 78%)
CMYKcmyk(67.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(41.39, 28.77, -61.41)
CIE-LCHlch(41.39, 67.82, 295.10°)
OKLaboklab(50.58% 0.0014 -0.1768)
OKLCHoklch(50.58% 0.177 270.5)
XYZxyz(16.0100, 12.1088, 56.1259)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157C8 #C8B241
analogous
#419BC8 #4157C8 #6F41C8
triadic
#4157C8 #C84157 #57C841
tetradic
#4157C8 #C8419B #C8B241 #41C86F
square
#4157C8 #C8419B #C8B241 #41C86F
split-complementary
#4157C8 #C86F41 #9BC841
monochromatic
#202D6F #2E409E #4157C8 #7081D6 #A0ABE3

Accessibility & contrast

On white

6.14
#4157C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4157C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157C8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157C8#FFFFFF#000000##FFFFFF
##4157C81.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4157c8;
/* rgb */ color: rgb(65, 87, 200);
/* oklch */ color: oklch(50.6% 0.177 270.5);
Tailwind
colors: {
  custom: {
    50: '#8586d9',
    500: '#4157c8',
    950: '#000000',
  },
}
SCSS
$custom: #4157c8;
$custom-light: #8586d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4157c8",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 230.222,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50576,
    "c": 0.1768,
    "h": 270.5
  },
  "luminance": 0.1211
}

Semantic roles & 50–950 ramp

primary
#4157C8
secondary
#D0C695
accent
#C649DE
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4157C8

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

Preview Lab → · Contrast checker → · Palette generator →

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