#4071B8#4071B8

#4071B8 is a mid, vivid blue. Relative luminance 0.164; OKLCH L 54.9% C 0.123 H 257.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#4071B8
RGBrgb(64, 113, 184)
HSLhsl(216, 48%, 49%)
HSVhsv(216, 65%, 72%)
CMYKcmyk(65.2%, 38.6%, 0%, 27.8%)
CIE-LABlab(47.44, 6.41, -42.43)
CIE-LCHlch(47.44, 42.91, 278.59°)
OKLaboklab(54.86% -0.0262 -0.1206)
OKLCHoklch(54.86% 0.123 257.7)
XYZxyz(16.6681, 16.3593, 47.6174)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4071B8 #B88740
analogous
#40ADB8 #4071B8 #4B40B8
triadic
#4071B8 #B84071 #71B840
tetradic
#4071B8 #B840AD #B88740 #40B84B
square
#4071B8 #B840AD #B88740 #40B84B
split-complementary
#4071B8 #B84B40 #ADB840
monochromatic
#20395D #30558B #4071B8 #6A92CB #97B3DB

Accessibility & contrast

On white

4.92
#4071B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#4071B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4071B8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4071B8#FFFFFF#000000##FFFFFF
##4071B81.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5277BB
Deuteranopia (green-blind)
#406BB7
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4071b8;
/* rgb */ color: rgb(64, 113, 184);
/* oklch */ color: oklch(54.9% 0.123 257.7);
Tailwind
colors: {
  custom: {
    50: '#8199ce',
    500: '#4071b8',
    950: '#000000',
  },
}
SCSS
$custom: #4071b8;
$custom-light: #8199ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4071b8",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 215.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.12345,
    "h": 257.7
  },
  "luminance": 0.16361
}

Semantic roles & 50–950 ramp

primary
#4071B8
secondary
#C7AF8D
accent
#A050D8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #4071B8

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

Preview Lab → · Contrast checker → · Palette generator →

#4071B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva