#4074C5#4074C5

#4074C5 is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.3% C 0.138 H 259.0°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4074C5
RGBrgb(64, 116, 197)
HSLhsl(217, 53%, 51%)
HSVhsv(217, 68%, 77%)
CMYKcmyk(67.5%, 41.1%, 0%, 22.7%)
CIE-LABlab(49.02, 9.16, -47.41)
CIE-LCHlch(49.02, 48.29, 280.94°)
OKLaboklab(56.32% -0.0263 -0.1352)
OKLCHoklch(56.32% 0.138 259)
XYZxyz(18.4342, 17.6101, 55.2401)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074C5 #C59140
analogous
#40B7C5 #4074C5 #4E40C5
triadic
#4074C5 #C54074 #74C540
tetradic
#4074C5 #C540B7 #C59140 #40C54E
square
#4074C5 #C540B7 #C59140 #40C54E
split-complementary
#4074C5 #C54E40 #B7C540
monochromatic
#203D6A #2F5899 #4074C5 #6F96D3 #9EB8E2

Accessibility & contrast

On white

4.64
#4074C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#4074C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4074C5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074C5#FFFFFF#000000##FFFFFF
##4074C51.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F7BC8
Deuteranopia (green-blind)
#3A6FC3
Tritanopia (blue-blind)
#008793
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4074c5;
/* rgb */ color: rgb(64, 116, 197);
/* oklch */ color: oklch(56.3% 0.138 259.0);
Tailwind
colors: {
  custom: {
    50: '#839bd7',
    500: '#4074c5',
    950: '#000000',
  },
}
SCSS
$custom: #4074c5;
$custom-light: #839bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4074c5",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 197
  },
  "hsl": {
    "h": 216.541,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56319,
    "c": 0.13774,
    "h": 259
  },
  "luminance": 0.17612
}

Semantic roles & 50–950 ramp

primary
#4074C5
secondary
#CEB793
accent
#A44BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4074C5

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

Preview Lab → · Contrast checker → · Palette generator →

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