#4071C7#4071C7

#4071C7 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.8% C 0.144 H 260.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4071C7
RGBrgb(64, 113, 199)
HSLhsl(218, 55%, 52%)
HSVhsv(218, 68%, 78%)
CMYKcmyk(67.8%, 43.2%, 0%, 22%)
CIE-LABlab(48.29, 11.75, -49.73)
CIE-LCHlch(48.29, 51.09, 283.29°)
OKLaboklab(55.79% -0.023 -0.142)
OKLCHoklch(55.79% 0.144 260.8)
XYZxyz(18.3246, 17.0219, 56.3416)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4071C7 #C79640
analogous
#40B5C7 #4071C7 #5340C7
triadic
#4071C7 #C74071 #71C740
tetradic
#4071C7 #C740B5 #C79640 #40C753
square
#4071C7 #C740B5 #C79640 #40C753
split-complementary
#4071C7 #C75340 #B5C740
monochromatic
#203C6D #2E569C #4071C7 #6F94D5 #9FB7E3

Accessibility & contrast

On white

4.77
#4071C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4071C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4071C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4071C7#FFFFFF#000000##FFFFFF
##4071C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4879CA
Deuteranopia (green-blind)
#316DC5
Tritanopia (blue-blind)
#008592
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4071c7;
/* rgb */ color: rgb(64, 113, 199);
/* oklch */ color: oklch(55.8% 0.144 260.8);
Tailwind
colors: {
  custom: {
    50: '#8399d8',
    500: '#4071c7',
    950: '#000000',
  },
}
SCSS
$custom: #4071c7;
$custom-light: #8399d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4071c7",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 218.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5579,
    "c": 0.1439,
    "h": 260.8
  },
  "luminance": 0.17024
}

Semantic roles & 50–950 ramp

primary
#4071C7
secondary
#CFBA94
accent
#A84ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4071C7

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

Preview Lab → · Contrast checker → · Palette generator →

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