#4181DC#4181DC

#4181DC is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.6% C 0.154 H 257.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#4181DC
RGBrgb(65, 129, 220)
HSLhsl(215, 69%, 56%)
HSVhsv(215, 70%, 86%)
CMYKcmyk(70.5%, 41.4%, 0%, 13.7%)
CIE-LABlab(54.02, 9.53, -52.50)
CIE-LCHlch(54.02, 53.36, 280.29°)
OKLaboklab(60.62% -0.033 -0.1499)
OKLCHoklch(60.62% 0.154 257.6)
XYZxyz(22.9438, 21.9892, 70.7314)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4181DC #DC9C41
analogous
#41CEDC #4181DC #4E41DC
triadic
#4181DC #DC4181 #81DC41
tetradic
#4181DC #DC41CE #DC9C41 #41DC4E
square
#4181DC #DC41CE #DC9C41 #41DC4E
split-complementary
#4181DC #DC4E41 #CEDC41
monochromatic
#194889 #2362BD #4181DC #75A3E6 #A8C6EF

Accessibility & contrast

On white

3.89
#4181DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#4181DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4181DC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4181DC#FFFFFF#000000##000000
##4181DC1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E0
Deuteranopia (green-blind)
#3C7BDA
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #4181dc;
/* rgb */ color: rgb(65, 129, 220);
/* oklch */ color: oklch(60.6% 0.154 257.6);
Tailwind
colors: {
  custom: {
    50: '#87a5e7',
    500: '#4181dc',
    950: '#000000',
  },
}
SCSS
$custom: #4181dc;
$custom-light: #87a5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4181dc",
  "rgb": {
    "r": 65,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 215.226,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60622,
    "c": 0.15351,
    "h": 257.6
  },
  "luminance": 0.21992
}

Semantic roles & 50–950 ramp

primary
#4181DC
secondary
#DDC29C
accent
#A33CEC
background
#F9FAFE
surface
#F1F4FC
border
#CBCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #4181DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4181DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva