#4071B7#4071B7

#4071B7 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 54.8% C 0.122 H 257.5°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4071B7
RGBrgb(64, 113, 183)
HSLhsl(215, 48%, 48%)
HSVhsv(215, 65%, 72%)
CMYKcmyk(65%, 38.3%, 0%, 28.2%)
CIE-LABlab(47.39, 6.06, -41.93)
CIE-LCHlch(47.39, 42.37, 278.22°)
OKLaboklab(54.8% -0.0265 -0.1192)
OKLCHoklch(54.8% 0.122 257.5)
XYZxyz(16.5637, 16.3175, 47.0673)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4071B7 #B78640
analogous
#40ACB7 #4071B7 #4A40B7
triadic
#4071B7 #B74071 #71B740
tetradic
#4071B7 #B740AC #B78640 #40B74A
square
#4071B7 #B740AC #B78640 #40B74A
split-complementary
#4071B7 #B74A40 #ACB740
monochromatic
#20395C #30558A #4071B7 #6992CB #97B3DB

Accessibility & contrast

On white

4.93
#4071B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4071B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4071B7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4071B7#FFFFFF#000000##FFFFFF
##4071B71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5276BA
Deuteranopia (green-blind)
#416BB6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4071b7;
/* rgb */ color: rgb(64, 113, 183);
/* oklch */ color: oklch(54.8% 0.122 257.5);
Tailwind
colors: {
  custom: {
    50: '#8199cd',
    500: '#4071b7',
    950: '#000000',
  },
}
SCSS
$custom: #4071b7;
$custom-light: #8199cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4071b7",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 215.294,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54801,
    "c": 0.12209,
    "h": 257.5
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4071B7

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

Preview Lab → · Contrast checker → · Palette generator →

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