#4074CD#4074CD

#4074CD is a mid, vivid blue. Relative luminance 0.180; OKLCH L 56.8% C 0.149 H 260.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#4074CD
RGBrgb(64, 116, 205)
HSLhsl(218, 59%, 53%)
HSVhsv(218, 69%, 80%)
CMYKcmyk(68.8%, 43.4%, 0%, 19.6%)
CIE-LABlab(49.48, 12.02, -51.25)
CIE-LCHlch(49.48, 52.64, 283.20°)
OKLaboklab(56.82% -0.0247 -0.1465)
OKLCHoklch(56.82% 0.149 260.4)
XYZxyz(19.3752, 17.9866, 60.1964)
Luminance0.1799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074CD #CD9940
analogous
#40BBCD #4074CD #5240CD
triadic
#4074CD #CD4074 #74CD40
tetradic
#4074CD #CD40BB #CD9940 #40CD52
square
#4074CD #CD40BB #CD9940 #40CD52
split-complementary
#4074CD #CD5240 #BBCD40
monochromatic
#1E3E74 #2B58A5 #4074CD #7197DA #A1BBE6

Accessibility & contrast

On white

4.57
#4074CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#4074CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074CD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074CD#FFFFFF#000000##000000
##4074CD1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#497DD0
Deuteranopia (green-blind)
#3070CB
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #4074cd;
/* rgb */ color: rgb(64, 116, 205);
/* oklch */ color: oklch(56.8% 0.149 260.4);
Tailwind
colors: {
  custom: {
    50: '#849bdd',
    500: '#4074cd',
    950: '#000000',
  },
}
SCSS
$custom: #4074cd;
$custom-light: #849bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4074cd",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 217.872,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56823,
    "c": 0.14855,
    "h": 260.4
  },
  "luminance": 0.17989
}

Semantic roles & 50–950 ramp

primary
#4074CD
secondary
#D3BC96
accent
#A846E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074CD

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

Preview Lab → · Contrast checker → · Palette generator →

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