#4074EF#4074EF

#4074EF is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.2% C 0.194 H 264.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4074EF
RGBrgb(64, 116, 239)
HSLhsl(222, 85%, 59%)
HSVhsv(222, 73%, 94%)
CMYKcmyk(73.2%, 51.5%, 0%, 6.3%)
CIE-LABlab(51.62, 24.27, -66.99)
CIE-LCHlch(51.62, 71.25, 289.91°)
OKLaboklab(59.15% -0.0199 -0.1928)
OKLCHoklch(59.15% 0.194 264.1)
XYZxyz(23.9342, 19.8101, 84.2070)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074EF #EFBB40
analogous
#40CCEF #4074EF #6340EF
triadic
#4074EF #EF4074 #74EF40
tetradic
#4074EF #EF40CC #EFBB40 #40EF63
square
#4074EF #EF40CC #EFBB40 #40EF63
split-complementary
#4074EF #EF6340 #CCEF40
monochromatic
#0E3BA7 #134FDF #4074EF #789DF4 #B1C6F8

Accessibility & contrast

On white

4.23
#4074EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#4074EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074EF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074EF#FFFFFF#000000##000000
##4074EF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2083F3
Deuteranopia (green-blind)
#0073ED
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4074ef;
/* rgb */ color: rgb(64, 116, 239);
/* oklch */ color: oklch(59.2% 0.194 264.1);
Tailwind
colors: {
  custom: {
    50: '#8b9bf5',
    500: '#4074ef',
    950: '#000000',
  },
}
SCSS
$custom: #4074ef;
$custom-light: #8b9bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#4074ef",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 222.171,
    "s": 84.541,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5915,
    "c": 0.19381,
    "h": 264.1
  },
  "luminance": 0.19813
}

Semantic roles & 50–950 ramp

primary
#4074EF
secondary
#E7D3A3
accent
#BE2DFB
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #4074EF

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

Preview Lab → · Contrast checker → · Palette generator →

#4074EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva