#4074C7#4074C7

#4074C7 is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.4% C 0.140 H 259.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4074C7
RGBrgb(64, 116, 199)
HSLhsl(217, 55%, 52%)
HSVhsv(217, 68%, 78%)
CMYKcmyk(67.8%, 41.7%, 0%, 22%)
CIE-LABlab(49.13, 9.88, -48.37)
CIE-LCHlch(49.13, 49.37, 281.54°)
OKLaboklab(56.44% -0.0259 -0.138)
OKLCHoklch(56.44% 0.14 259.4)
XYZxyz(18.6648, 17.7024, 56.4550)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074C7 #C79340
analogous
#40B8C7 #4074C7 #5040C7
triadic
#4074C7 #C74074 #74C740
tetradic
#4074C7 #C740B8 #C79340 #40C750
square
#4074C7 #C740B8 #C79340 #40C750
split-complementary
#4074C7 #C75040 #B8C740
monochromatic
#203D6D #2E589C #4074C7 #6F96D5 #9FB9E3

Accessibility & contrast

On white

4.62
#4074C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#4074C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4074C7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074C7#FFFFFF#000000##FFFFFF
##4074C71.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D7CCA
Deuteranopia (green-blind)
#386FC5
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4074c7;
/* rgb */ color: rgb(64, 116, 199);
/* oklch */ color: oklch(56.4% 0.140 259.4);
Tailwind
colors: {
  custom: {
    50: '#839bd8',
    500: '#4074c7',
    950: '#000000',
  },
}
SCSS
$custom: #4074c7;
$custom-light: #839bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4074c7",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 199
  },
  "hsl": {
    "h": 216.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56443,
    "c": 0.14044,
    "h": 259.4
  },
  "luminance": 0.17704
}

Semantic roles & 50–950 ramp

primary
#4074C7
secondary
#CFB894
accent
#A54ADE
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4074C7

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

Preview Lab → · Contrast checker → · Palette generator →

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