#4157CF#4157CF

#4157CF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.186 H 270.5°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#4157CF
RGBrgb(65, 87, 207)
HSLhsl(231, 60%, 53%)
HSVhsv(231, 69%, 81%)
CMYKcmyk(68.6%, 58%, 0%, 18.8%)
CIE-LABlab(41.91, 31.24, -64.60)
CIE-LCHlch(41.91, 71.76, 295.81°)
OKLaboklab(51.13% 0.0016 -0.1862)
OKLCHoklch(51.13% 0.186 270.5)
XYZxyz(16.8468, 12.4436, 60.5334)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CF #CFB941
analogous
#419ECF #4157CF #7241CF
triadic
#4157CF #CF4157 #57CF41
tetradic
#4157CF #CF419E #CFB941 #41CF72
square
#4157CF #CF419E #CFB941 #41CF72
split-complementary
#4157CF #CF7241 #9ECF41
monochromatic
#1E2C77 #2B3EA8 #4157CF #7282DB #A3ADE8

Accessibility & contrast

On white

6.02
#4157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CF
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CF#FFFFFF#000000##FFFFFF
##4157CF1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4157cf;
/* rgb */ color: rgb(65, 87, 207);
/* oklch */ color: oklch(51.1% 0.186 270.5);
Tailwind
colors: {
  custom: {
    50: '#8786df',
    500: '#4157cf',
    950: '#000000',
  },
}
SCSS
$custom: #4157cf;
$custom-light: #8786df;
$custom-dark: #000000;
JSON
{
  "hex": "#4157cf",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 230.704,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51132,
    "c": 0.18618,
    "h": 270.5
  },
  "luminance": 0.12445
}

Semantic roles & 50–950 ramp

primary
#4157CF
secondary
#D4CB97
accent
#CA45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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