#4074D7#4074D7

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

Color values

HEX#4074D7
RGBrgb(64, 116, 215)
HSLhsl(219, 65%, 55%)
HSVhsv(219, 70%, 84%)
CMYKcmyk(70.2%, 46%, 0%, 15.7%)
CIE-LABlab(50.08, 15.62, -55.98)
CIE-LCHlch(50.08, 58.12, 285.59°)
OKLaboklab(57.48% -0.023 -0.1604)
OKLCHoklch(57.48% 0.162 261.8)
XYZxyz(20.6211, 18.4849, 66.7580)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074D7 #D7A340
analogous
#40BFD7 #4074D7 #5840D7
triadic
#4074D7 #D74074 #74D740
tetradic
#4074D7 #D740BF #D7A340 #40D758
square
#4074D7 #D740BF #D7A340 #40D758
split-complementary
#4074D7 #D75840 #BFD740
monochromatic
#1B3E81 #2657B4 #4074D7 #7399E2 #A5BEEC

Accessibility & contrast

On white

4.47
#4074D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#4074D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074D7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074D7#FFFFFF#000000##000000
##4074D71.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#417FDB
Deuteranopia (green-blind)
#2071D5
Tritanopia (blue-blind)
#008B9B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4074d7;
/* rgb */ color: rgb(64, 116, 215);
/* oklch */ color: oklch(57.5% 0.162 261.8);
Tailwind
colors: {
  custom: {
    50: '#869be4',
    500: '#4074d7',
    950: '#000000',
  },
}
SCSS
$custom: #4074d7;
$custom-light: #869be4;
$custom-dark: #000000;
JSON
{
  "hex": "#4074d7",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 215
  },
  "hsl": {
    "h": 219.338,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57478,
    "c": 0.16202,
    "h": 261.8
  },
  "luminance": 0.18487
}

Semantic roles & 50–950 ramp

primary
#4074D7
secondary
#D9C39A
accent
#AE3FE8
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0D0E16
muted
#7D7E84

Preview Lab

Preview with #4074D7

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

Preview Lab → · Contrast checker → · Palette generator →

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