#4157CD#4157CD

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

Color values

HEX#4157CD
RGBrgb(65, 87, 205)
HSLhsl(231, 58%, 53%)
HSVhsv(231, 68%, 80%)
CMYKcmyk(68.3%, 57.6%, 0%, 19.6%)
CIE-LABlab(41.76, 30.54, -63.70)
CIE-LCHlch(41.76, 70.64, 295.61°)
OKLaboklab(50.97% 0.0016 -0.1835)
OKLCHoklch(50.97% 0.184 270.5)
XYZxyz(16.6039, 12.3464, 59.2538)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4157CD #CDB741
analogous
#419DCD #4157CD #7141CD
triadic
#4157CD #CD4157 #57CD41
tetradic
#4157CD #CD419D #CDB741 #41CD71
square
#4157CD #CD419D #CDB741 #41CD71
split-complementary
#4157CD #CD7141 #9DCD41
monochromatic
#1F2C75 #2C3FA5 #4157CD #7182DA #A2ADE6

Accessibility & contrast

On white

6.05
#4157CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#4157CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4157CD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4157CD#FFFFFF#000000##FFFFFF
##4157CD1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4157cd;
/* rgb */ color: rgb(65, 87, 205);
/* oklch */ color: oklch(51.0% 0.184 270.5);
Tailwind
colors: {
  custom: {
    50: '#8686dd',
    500: '#4157cd',
    950: '#000000',
  },
}
SCSS
$custom: #4157cd;
$custom-light: #8686dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4157cd",
  "rgb": {
    "r": 65,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 230.571,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50972,
    "c": 0.18351,
    "h": 270.5
  },
  "luminance": 0.12348
}

Semantic roles & 50–950 ramp

primary
#4157CD
secondary
#D3CA97
accent
#C946E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0B15
muted
#7D7C83

Preview Lab

Preview with #4157CD

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

Preview Lab → · Contrast checker → · Palette generator →

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