#4157CA#4157CA

#4157CA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.7% C 0.179 H 270.5°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#4157CA
RGBrgb(65, 87, 202)
HSLhsl(230, 56%, 52%)
HSVhsv(230, 68%, 79%)
CMYKcmyk(67.8%, 56.9%, 0%, 20.8%)
CIE-LABlab(41.54, 29.48, -62.33)
CIE-LCHlch(41.54, 68.95, 295.31°)
OKLaboklab(50.73% 0.0015 -0.1795)
OKLCHoklch(50.73% 0.18 270.5)
XYZxyz(16.2452, 12.2029, 57.3649)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CA #CAB441
analogous
#419CCA #4157CA #7041CA
triadic
#4157CA #CA4157 #57CA41
tetradic
#4157CA #CA419C #CAB441 #41CA70
square
#4157CA #CA419C #CAB441 #41CA70
split-complementary
#4157CA #CA7041 #9CCA41
monochromatic
#202D71 #2D40A1 #4157CA #7181D7 #A1ACE5

Accessibility & contrast

On white

6.10
#4157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#4157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CA#FFFFFF#000000##FFFFFF
##4157CA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4157ca;
/* rgb */ color: rgb(65, 87, 202);
/* oklch */ color: oklch(50.7% 0.179 270.5);
Tailwind
colors: {
  custom: {
    50: '#8686db',
    500: '#4157ca',
    950: '#000000',
  },
}
SCSS
$custom: #4157ca;
$custom-light: #8686db;
$custom-dark: #000000;
JSON
{
  "hex": "#4157ca",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 230.365,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50734,
    "c": 0.1795,
    "h": 270.5
  },
  "luminance": 0.12204
}

Semantic roles & 50–950 ramp

primary
#4157CA
secondary
#D1C896
accent
#C748E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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