#4157CC#4157CC

#4157CC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.9% C 0.182 H 270.5°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4157CC
RGBrgb(65, 87, 204)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.1%, 57.4%, 0%, 20%)
CIE-LABlab(41.69, 30.18, -63.24)
CIE-LCHlch(41.69, 70.08, 295.51°)
OKLaboklab(50.89% 0.0016 -0.1822)
OKLCHoklch(50.89% 0.182 270.5)
XYZxyz(16.4835, 12.2983, 58.6201)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CC #CCB641
analogous
#419CCC #4157CC #7141CC
triadic
#4157CC #CC4157 #57CC41
tetradic
#4157CC #CC419C #CCB641 #41CC71
square
#4157CC #CC419C #CCB641 #41CC71
split-complementary
#4157CC #CC7141 #9CCC41
monochromatic
#1F2C74 #2C3FA4 #4157CC #7182D9 #A1ACE6

Accessibility & contrast

On white

6.07
#4157CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4157CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CC#FFFFFF#000000##FFFFFF
##4157CC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4157cc;
/* rgb */ color: rgb(65, 87, 204);
/* oklch */ color: oklch(50.9% 0.182 270.5);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4157cc',
    950: '#000000',
  },
}
SCSS
$custom: #4157cc;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4157cc",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 230.504,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50892,
    "c": 0.18218,
    "h": 270.5
  },
  "luminance": 0.123
}

Semantic roles & 50–950 ramp

primary
#4157CC
secondary
#D3C996
accent
#C947E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4157CC

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

Preview Lab → · Contrast checker → · Palette generator →

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