#4070ED#4070ED

#4070ED is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.2% C 0.196 H 265.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4070ED
RGBrgb(64, 112, 237)
HSLhsl(223, 83%, 59%)
HSVhsv(223, 73%, 93%)
CMYKcmyk(73%, 52.7%, 0%, 7.1%)
CIE-LABlab(50.44, 26.05, -67.78)
CIE-LCHlch(50.44, 72.62, 291.02°)
OKLaboklab(58.21% -0.0171 -0.1952)
OKLCHoklch(58.21% 0.196 265)
XYZxyz(23.1892, 18.7902, 82.5091)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4070ED #EDBD40
analogous
#40C6ED #4070ED #6740ED
triadic
#4070ED #ED4070 #70ED40
tetradic
#4070ED #ED40C6 #EDBD40 #40ED67
square
#4070ED #ED40C6 #EDBD40 #40ED67
split-complementary
#4070ED #ED6740 #C6ED40
monochromatic
#0F38A3 #154CDB #4070ED #789AF2 #B0C4F8

Accessibility & contrast

On white

4.41
#4070ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#4070ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4070ED
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4070ED#FFFFFF#000000##000000
##4070ED1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F80F1
Deuteranopia (green-blind)
#0070EB
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4070ed;
/* rgb */ color: rgb(64, 112, 237);
/* oklch */ color: oklch(58.2% 0.196 265.0);
Tailwind
colors: {
  custom: {
    50: '#8b98f4',
    500: '#4070ed',
    950: '#000000',
  },
}
SCSS
$custom: #4070ed;
$custom-light: #8b98f4;
$custom-dark: #000000;
JSON
{
  "hex": "#4070ed",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 223.353,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58211,
    "c": 0.19594,
    "h": 265
  },
  "luminance": 0.18793
}

Semantic roles & 50–950 ramp

primary
#4070ED
secondary
#E6D4A2
accent
#C12FF9
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #4070ED

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

Preview Lab → · Contrast checker → · Palette generator →

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