#4070C8#4070C8

#4070C8 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.146 H 261.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#4070C8
RGBrgb(64, 112, 200)
HSLhsl(219, 55%, 52%)
HSVhsv(219, 68%, 78%)
CMYKcmyk(68%, 44%, 0%, 21.6%)
CIE-LABlab(48.07, 12.73, -50.65)
CIE-LCHlch(48.07, 52.23, 284.11°)
OKLaboklab(55.64% -0.0219 -0.1448)
OKLCHoklch(55.64% 0.146 261.4)
XYZxyz(18.3301, 16.8466, 56.9181)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070C8 #C89840
analogous
#40B4C8 #4070C8 #5440C8
triadic
#4070C8 #C84070 #70C840
tetradic
#4070C8 #C840B4 #C89840 #40C854
square
#4070C8 #C840B4 #C89840 #40C854
split-complementary
#4070C8 #C85440 #B4C840
monochromatic
#203B6E #2D559D #4070C8 #7094D6 #9FB7E3

Accessibility & contrast

On white

4.81
#4070C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#4070C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070C8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070C8#FFFFFF#000000##FFFFFF
##4070C81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4579CB
Deuteranopia (green-blind)
#2D6CC6
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4070c8;
/* rgb */ color: rgb(64, 112, 200);
/* oklch */ color: oklch(55.6% 0.146 261.4);
Tailwind
colors: {
  custom: {
    50: '#8498d9',
    500: '#4070c8',
    950: '#000000',
  },
}
SCSS
$custom: #4070c8;
$custom-light: #8498d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4070c8",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 200
  },
  "hsl": {
    "h": 218.824,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55638,
    "c": 0.14644,
    "h": 261.4
  },
  "luminance": 0.16848
}

Semantic roles & 50–950 ramp

primary
#4070C8
secondary
#D0BB94
accent
#AA49DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070C8

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

Preview Lab → · Contrast checker → · Palette generator →

#4070C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva