#4070C0#4070C0

#4070C0 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.1% C 0.136 H 260.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#4070C0
RGBrgb(64, 112, 192)
HSLhsl(218, 50%, 50%)
HSVhsv(218, 67%, 75%)
CMYKcmyk(66.7%, 41.7%, 0%, 24.7%)
CIE-LABlab(47.60, 9.87, -46.80)
CIE-LCHlch(47.60, 47.83, 281.91°)
OKLaboklab(55.13% -0.0234 -0.1335)
OKLCHoklch(55.13% 0.136 260)
XYZxyz(17.4196, 16.4824, 52.1224)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070C0 #C09040
analogous
#40B0C0 #4070C0 #5040C0
triadic
#4070C0 #C04070 #70C040
tetradic
#4070C0 #C040B0 #C09040 #40C050
square
#4070C0 #C040B0 #C09040 #40C050
split-complementary
#4070C0 #C05040 #B0C040
monochromatic
#213A64 #305592 #4070C0 #6E92CF #9CB5DE

Accessibility & contrast

On white

4.89
#4070C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#4070C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070C0
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070C0#FFFFFF#000000##FFFFFF
##4070C01.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C3
Deuteranopia (green-blind)
#376BBE
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4070c0;
/* rgb */ color: rgb(64, 112, 192);
/* oklch */ color: oklch(55.1% 0.136 260.0);
Tailwind
colors: {
  custom: {
    50: '#8298d3',
    500: '#4070c0',
    950: '#000000',
  },
}
SCSS
$custom: #4070c0;
$custom-light: #8298d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4070c0",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 192
  },
  "hsl": {
    "h": 217.5,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.1355,
    "h": 260
  },
  "luminance": 0.16484
}

Semantic roles & 50–950 ramp

primary
#4070C0
secondary
#CBB591
accent
#A54EDA
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #4070C0

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

Preview Lab → · Contrast checker → · Palette generator →

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