#4151C2#4151C2

#4151C2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.176 H 272.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#4151C2
RGBrgb(65, 81, 194)
HSLhsl(233, 51%, 51%)
HSVhsv(233, 66%, 76%)
CMYKcmyk(66.5%, 58.2%, 0%, 23.9%)
CIE-LABlab(39.42, 30.48, -61.14)
CIE-LCHlch(39.42, 68.31, 296.50°)
OKLaboklab(48.96% 0.0064 -0.1761)
OKLCHoklch(48.96% 0.176 272.1)
XYZxyz(14.8567, 10.9024, 52.3499)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4151C2 #C2B241
analogous
#4191C2 #4151C2 #7141C2
triadic
#4151C2 #C24151 #51C241
tetradic
#4151C2 #C24191 #C2B241 #41C271
square
#4151C2 #C24191 #C2B241 #41C271
split-complementary
#4151C2 #C27141 #91C241
monochromatic
#212A67 #303D96 #4151C2 #6F7BD1 #9EA6E0

Accessibility & contrast

On white

6.60
#4151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4151C2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4151C2#FFFFFF#000000##FFFFFF
##4151C21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4151c2;
/* rgb */ color: rgb(65, 81, 194);
/* oklch */ color: oklch(49.0% 0.176 272.1);
Tailwind
colors: {
  custom: {
    50: '#8481d5',
    500: '#4151c2',
    950: '#000000',
  },
}
SCSS
$custom: #4151c2;
$custom-light: #8481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4151c2",
  "rgb": {
    "r": 65,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 232.558,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.17616,
    "h": 272.1
  },
  "luminance": 0.10904
}

Semantic roles & 50–950 ramp

primary
#4151C2
secondary
#CCC593
accent
#C94DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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