#4157CB#4157CB

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

Color values

HEX#4157CB
RGBrgb(65, 87, 203)
HSLhsl(230, 57%, 53%)
HSVhsv(230, 68%, 80%)
CMYKcmyk(68%, 57.1%, 0%, 20.4%)
CIE-LABlab(41.61, 29.83, -62.79)
CIE-LCHlch(41.61, 69.51, 295.41°)
OKLaboklab(50.81% 0.0015 -0.1808)
OKLCHoklch(50.81% 0.181 270.5)
XYZxyz(16.3640, 12.2504, 57.9905)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CB #CBB541
analogous
#419CCB #4157CB #7041CB
triadic
#4157CB #CB4157 #57CB41
tetradic
#4157CB #CB419C #CBB541 #41CB70
square
#4157CB #CB419C #CBB541 #41CB70
split-complementary
#4157CB #CB7041 #9CCB41
monochromatic
#1F2D72 #2C3FA2 #4157CB #7181D8 #A1ACE5

Accessibility & contrast

On white

6.09
#4157CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#4157CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CB#FFFFFF#000000##FFFFFF
##4157CB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4157cb;
/* rgb */ color: rgb(65, 87, 203);
/* oklch */ color: oklch(50.8% 0.181 270.5);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4157cb',
    950: '#000000',
  },
}
SCSS
$custom: #4157cb;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4157cb",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 230.435,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50813,
    "c": 0.18084,
    "h": 270.5
  },
  "luminance": 0.12252
}

Semantic roles & 50–950 ramp

primary
#4157CB
secondary
#D2C896
accent
#C848E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4157CB

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

Preview Lab → · Contrast checker → · Palette generator →

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