#4151CF#4151CF

#4151CF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.193 H 271.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#4151CF
RGBrgb(65, 81, 207)
HSLhsl(233, 60%, 53%)
HSVhsv(233, 69%, 81%)
CMYKcmyk(68.6%, 60.9%, 0%, 18.8%)
CIE-LABlab(40.43, 35.02, -67.02)
CIE-LCHlch(40.43, 75.62, 297.59°)
OKLaboklab(50.03% 0.0063 -0.1933)
OKLCHoklch(50.03% 0.193 271.9)
XYZxyz(16.3811, 11.5121, 60.3782)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151CF #CFBF41
analogous
#4198CF #4151CF #7841CF
triadic
#4151CF #CF4151 #51CF41
tetradic
#4151CF #CF4198 #CFBF41 #41CF78
square
#4151CF #CF4198 #CFBF41 #41CF78
split-complementary
#4151CF #CF7841 #98CF41
monochromatic
#1E2877 #2B39A8 #4151CF #727EDB #A3AAE8

Accessibility & contrast

On white

6.36
#4151CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4151CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151CF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151CF#FFFFFF#000000##FFFFFF
##4151CF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4151cf;
/* rgb */ color: rgb(65, 81, 207);
/* oklch */ color: oklch(50.0% 0.193 271.9);
Tailwind
colors: {
  custom: {
    50: '#8781df',
    500: '#4151cf',
    950: '#000000',
  },
}
SCSS
$custom: #4151cf;
$custom-light: #8781df;
$custom-dark: #000000;
JSON
{
  "hex": "#4151cf",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 233.239,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50032,
    "c": 0.19343,
    "h": 271.9
  },
  "luminance": 0.11514
}

Semantic roles & 50–950 ramp

primary
#4151CF
secondary
#D4CE97
accent
#D145E3
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4151CF

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

Preview Lab → · Contrast checker → · Palette generator →

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