#4074C8#4074C8

#4074C8 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.5% C 0.142 H 259.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#4074C8
RGBrgb(64, 116, 200)
HSLhsl(217, 55%, 52%)
HSVhsv(217, 68%, 78%)
CMYKcmyk(68%, 42%, 0%, 21.6%)
CIE-LABlab(49.19, 10.24, -48.86)
CIE-LCHlch(49.19, 49.92, 281.83°)
OKLaboklab(56.51% -0.0257 -0.1394)
OKLCHoklch(56.51% 0.142 259.6)
XYZxyz(18.7813, 17.7490, 57.0685)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074C8 #C89440
analogous
#40B8C8 #4074C8 #5040C8
triadic
#4074C8 #C84074 #74C840
tetradic
#4074C8 #C840B8 #C89440 #40C850
square
#4074C8 #C840B8 #C89440 #40C850
split-complementary
#4074C8 #C85040 #B8C840
monochromatic
#203E6E #2D589D #4074C8 #7097D6 #9FB9E3

Accessibility & contrast

On white

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

On black

4.55
#4074C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4074C8#FFFFFF#000000##FFFFFF
##4074C81.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D7CCB
Deuteranopia (green-blind)
#366FC6
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4074c8;
/* rgb */ color: rgb(64, 116, 200);
/* oklch */ color: oklch(56.5% 0.142 259.6);
Tailwind
colors: {
  custom: {
    50: '#839bd9',
    500: '#4074c8',
    950: '#000000',
  },
}
SCSS
$custom: #4074c8;
$custom-light: #839bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4074c8",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 200
  },
  "hsl": {
    "h": 217.059,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56506,
    "c": 0.1418,
    "h": 259.6
  },
  "luminance": 0.17751
}

Semantic roles & 50–950 ramp

primary
#4074C8
secondary
#D0B994
accent
#A549DF
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074C8

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

Preview Lab → · Contrast checker → · Palette generator →

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