#4151CB#4151CB

#4151CB is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.7% C 0.188 H 271.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#4151CB
RGBrgb(65, 81, 203)
HSLhsl(233, 57%, 53%)
HSVhsv(233, 68%, 80%)
CMYKcmyk(68%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.11, 33.63, -65.23)
CIE-LCHlch(40.11, 73.38, 297.27°)
OKLaboklab(49.7% 0.0063 -0.1881)
OKLCHoklch(49.7% 0.188 271.9)
XYZxyz(15.8983, 11.3190, 57.8353)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151CB #CBBB41
analogous
#4196CB #4151CB #7641CB
triadic
#4151CB #CB4151 #51CB41
tetradic
#4151CB #CB4196 #CBBB41 #41CB76
square
#4151CB #CB4196 #CBBB41 #41CB76
split-complementary
#4151CB #CB7641 #96CB41
monochromatic
#1F2972 #2C3AA2 #4151CB #717DD8 #A1A9E5

Accessibility & contrast

On white

6.43
#4151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#4151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151CB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151CB#FFFFFF#000000##FFFFFF
##4151CB1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4151cb;
/* rgb */ color: rgb(65, 81, 203);
/* oklch */ color: oklch(49.7% 0.188 271.9);
Tailwind
colors: {
  custom: {
    50: '#8681dc',
    500: '#4151cb',
    950: '#000000',
  },
}
SCSS
$custom: #4151cb;
$custom-light: #8681dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4151cb",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 233.043,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.18817,
    "h": 271.9
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

primary
#4151CB
secondary
#D2CB96
accent
#CF48E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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