#4074DC#4074DC

#4074DC is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.8% C 0.169 H 262.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#4074DC
RGBrgb(64, 116, 220)
HSLhsl(220, 69%, 56%)
HSVhsv(220, 71%, 86%)
CMYKcmyk(70.9%, 47.3%, 0%, 13.7%)
CIE-LABlab(50.39, 17.42, -58.31)
CIE-LCHlch(50.39, 60.86, 286.63°)
OKLaboklab(57.82% -0.0222 -0.1672)
OKLCHoklch(57.82% 0.169 262.4)
XYZxyz(21.2734, 18.7458, 70.1934)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074DC #DCA840
analogous
#40C2DC #4074DC #5A40DC
triadic
#4074DC #DC4074 #74DC40
tetradic
#4074DC #DC40C2 #DCA840 #40DC5A
square
#4074DC #DC40C2 #DCA840 #40DC5A
split-complementary
#4074DC #DC5A40 #C2DC40
monochromatic
#193E89 #2356BC #4074DC #749AE5 #A7BFEF

Accessibility & contrast

On white

4.42
#4074DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#4074DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074DC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074DC#FFFFFF#000000##000000
##4074DC1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C80E0
Deuteranopia (green-blind)
#1271DA
Tritanopia (blue-blind)
#008C9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4074dc;
/* rgb */ color: rgb(64, 116, 220);
/* oklch */ color: oklch(57.8% 0.169 262.4);
Tailwind
colors: {
  custom: {
    50: '#879be7',
    500: '#4074dc',
    950: '#000000',
  },
}
SCSS
$custom: #4074dc;
$custom-light: #879be7;
$custom-dark: #000000;
JSON
{
  "hex": "#4074dc",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 220
  },
  "hsl": {
    "h": 220,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57815,
    "c": 0.16871,
    "h": 262.4
  },
  "luminance": 0.18748
}

Semantic roles & 50–950 ramp

primary
#4074DC
secondary
#DCC79B
accent
#B13CEC
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #4074DC

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

Preview Lab → · Contrast checker → · Palette generator →

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