#4074D8#4074D8

#4074D8 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.5% C 0.163 H 262.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4074D8
RGBrgb(64, 116, 216)
HSLhsl(219, 66%, 55%)
HSVhsv(219, 70%, 85%)
CMYKcmyk(70.4%, 46.3%, 0%, 15.3%)
CIE-LABlab(50.14, 15.98, -56.45)
CIE-LCHlch(50.14, 58.66, 285.81°)
OKLaboklab(57.55% -0.0228 -0.1618)
OKLCHoklch(57.55% 0.163 262)
XYZxyz(20.7500, 18.5365, 67.4368)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074D8 #D8A440
analogous
#40C0D8 #4074D8 #5840D8
triadic
#4074D8 #D84074 #74D840
tetradic
#4074D8 #D840C0 #D8A440 #40D858
square
#4074D8 #D840C0 #D8A440 #40D858
split-complementary
#4074D8 #D85840 #C0D840
monochromatic
#1B3E83 #2557B6 #4074D8 #7399E2 #A6BEED

Accessibility & contrast

On white

4.46
#4074D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#4074D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074D8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074D8#FFFFFF#000000##000000
##4074D81.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#407FDC
Deuteranopia (green-blind)
#1D71D6
Tritanopia (blue-blind)
#008B9B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4074d8;
/* rgb */ color: rgb(64, 116, 216);
/* oklch */ color: oklch(57.5% 0.163 262.0);
Tailwind
colors: {
  custom: {
    50: '#869be5',
    500: '#4074d8',
    950: '#000000',
  },
}
SCSS
$custom: #4074d8;
$custom-light: #869be5;
$custom-dark: #000000;
JSON
{
  "hex": "#4074d8",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 216
  },
  "hsl": {
    "h": 219.474,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57545,
    "c": 0.16337,
    "h": 262
  },
  "luminance": 0.18539
}

Semantic roles & 50–950 ramp

primary
#4074D8
secondary
#DAC49A
accent
#AF3FE9
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E16
muted
#7D7E84

Preview Lab

Preview with #4074D8

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

Preview Lab → · Contrast checker → · Palette generator →

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