#4070CB#4070CB

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

Color values

HEX#4070CB
RGBrgb(64, 112, 203)
HSLhsl(219, 57%, 52%)
HSVhsv(219, 68%, 80%)
CMYKcmyk(68.5%, 44.8%, 0%, 20.4%)
CIE-LABlab(48.25, 13.81, -52.08)
CIE-LCHlch(48.25, 53.88, 284.85°)
OKLaboklab(55.83% -0.0214 -0.149)
OKLCHoklch(55.83% 0.151 261.8)
XYZxyz(18.6842, 16.9882, 58.7827)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070CB #CB9B40
analogous
#40B5CB #4070CB #5640CB
triadic
#4070CB #CB4070 #70CB40
tetradic
#4070CB #CB40B5 #CB9B40 #40CB56
square
#4070CB #CB40B5 #CB9B40 #40CB56
split-complementary
#4070CB #CB5640 #B5CB40
monochromatic
#1F3C72 #2C55A2 #4070CB #7094D8 #A0B8E5

Accessibility & contrast

On white

4.77
#4070CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4070CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4070CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070CB#FFFFFF#000000##FFFFFF
##4070CB1.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)
#4379CE
Deuteranopia (green-blind)
#296DC9
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4070cb;
/* rgb */ color: rgb(64, 112, 203);
/* oklch */ color: oklch(55.8% 0.151 261.8);
Tailwind
colors: {
  custom: {
    50: '#8498db',
    500: '#4070cb',
    950: '#000000',
  },
}
SCSS
$custom: #4070cb;
$custom-light: #8498db;
$custom-dark: #000000;
JSON
{
  "hex": "#4070cb",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 219.281,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55833,
    "c": 0.15051,
    "h": 261.8
  },
  "luminance": 0.1699
}

Semantic roles & 50–950 ramp

primary
#4070CB
secondary
#D2BD95
accent
#AC47E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #4070CB

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

Preview Lab → · Contrast checker → · Palette generator →

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