#4074CF#4074CF

#4074CF is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.0% C 0.151 H 260.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4074CF
RGBrgb(64, 116, 207)
HSLhsl(218, 60%, 53%)
HSVhsv(218, 69%, 81%)
CMYKcmyk(69.1%, 44%, 0%, 18.8%)
CIE-LABlab(49.60, 12.74, -52.20)
CIE-LCHlch(49.60, 53.74, 283.72°)
OKLaboklab(56.95% -0.0244 -0.1493)
OKLCHoklch(56.95% 0.151 260.7)
XYZxyz(19.6182, 18.0837, 61.4760)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074CF #CF9B40
analogous
#40BBCF #4074CF #5340CF
triadic
#4074CF #CF4074 #74CF40
tetradic
#4074CF #CF40BB #CF9B40 #40CF53
square
#4074CF #CF40BB #CF9B40 #40CF53
split-complementary
#4074CF #CF5340 #BBCF40
monochromatic
#1E3E77 #2A58A8 #4074CF #7198DB #A2BBE8

Accessibility & contrast

On white

4.55
#4074CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#4074CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074CF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074CF#FFFFFF#000000##000000
##4074CF1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#477DD2
Deuteranopia (green-blind)
#2E70CD
Tritanopia (blue-blind)
#008997
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4074cf;
/* rgb */ color: rgb(64, 116, 207);
/* oklch */ color: oklch(57.0% 0.151 260.7);
Tailwind
colors: {
  custom: {
    50: '#859bde',
    500: '#4074cf',
    950: '#000000',
  },
}
SCSS
$custom: #4074cf;
$custom-light: #859bde;
$custom-dark: #000000;
JSON
{
  "hex": "#4074cf",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 207
  },
  "hsl": {
    "h": 218.182,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56952,
    "c": 0.15126,
    "h": 260.7
  },
  "luminance": 0.18086
}

Semantic roles & 50–950 ramp

primary
#4074CF
secondary
#D4BE97
accent
#A945E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074CF

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

Preview Lab → · Contrast checker → · Palette generator →

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