#4164BA#4164BA

#4164BA is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.2% C 0.141 H 265.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#4164BA
RGBrgb(65, 100, 186)
HSLhsl(223, 48%, 49%)
HSVhsv(223, 65%, 73%)
CMYKcmyk(65.1%, 46.2%, 0%, 27.1%)
CIE-LABlab(43.92, 15.47, -49.21)
CIE-LCHlch(43.92, 51.58, 287.45°)
OKLaboklab(52.19% -0.0118 -0.1407)
OKLCHoklch(52.19% 0.141 265.2)
XYZxyz(15.5970, 13.7819, 48.2831)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4164BA #BA9741
analogous
#41A1BA #4164BA #5B41BA
triadic
#4164BA #BA4164 #64BA41
tetradic
#4164BA #BA41A1 #BA9741 #41BA5B
square
#4164BA #BA41A1 #BA9741 #41BA5B
split-complementary
#4164BA #BA5B41 #A1BA41
monochromatic
#21335F #314C8D #4164BA #6C88CC #9AADDC

Accessibility & contrast

On white

5.59
#4164BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4164BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4164BA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4164BA#FFFFFF#000000##FFFFFF
##4164BA1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396EBD
Deuteranopia (green-blind)
#2363B8
Tritanopia (blue-blind)
#007886
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4164ba;
/* rgb */ color: rgb(65, 100, 186);
/* oklch */ color: oklch(52.2% 0.141 265.2);
Tailwind
colors: {
  custom: {
    50: '#828fcf',
    500: '#4164ba',
    950: '#000000',
  },
}
SCSS
$custom: #4164ba;
$custom-light: #828fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4164ba",
  "rgb": {
    "r": 65,
    "g": 100,
    "b": 186
  },
  "hsl": {
    "h": 222.645,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5219,
    "c": 0.14118,
    "h": 265.2
  },
  "luminance": 0.13783
}

Semantic roles & 50–950 ramp

primary
#4164BA
secondary
#C8B78F
accent
#B150D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #4164BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4164BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva