#4074BF#4074BF

#4074BF is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.0% C 0.130 H 257.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#4074BF
RGBrgb(64, 116, 191)
HSLhsl(215, 50%, 50%)
HSVhsv(215, 66%, 75%)
CMYKcmyk(66.5%, 39.3%, 0%, 25.1%)
CIE-LABlab(48.69, 7.03, -44.49)
CIE-LCHlch(48.69, 45.04, 278.98°)
OKLaboklab(55.95% -0.0276 -0.1267)
OKLCHoklch(55.95% 0.13 257.7)
XYZxyz(17.7603, 17.3406, 51.6912)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074BF #BF8B40
analogous
#40B4BF #4074BF #4B40BF
triadic
#4074BF #BF4074 #74BF40
tetradic
#4074BF #BF40B4 #BF8B40 #40BF4B
square
#4074BF #BF40B4 #BF8B40 #40BF4B
split-complementary
#4074BF #BF4B40 #B4BF40
monochromatic
#213C63 #315891 #4074BF #6E95CE #9CB7DE

Accessibility & contrast

On white

4.70
#4074BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#4074BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4074BF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074BF#FFFFFF#000000##FFFFFF
##4074BF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#527AC2
Deuteranopia (green-blind)
#3F6EBD
Tritanopia (blue-blind)
#008590
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4074bf;
/* rgb */ color: rgb(64, 116, 191);
/* oklch */ color: oklch(56.0% 0.130 257.7);
Tailwind
colors: {
  custom: {
    50: '#829bd3',
    500: '#4074bf',
    950: '#000000',
  },
}
SCSS
$custom: #4074bf;
$custom-light: #829bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#4074bf",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 191
  },
  "hsl": {
    "h": 215.433,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55951,
    "c": 0.12963,
    "h": 257.7
  },
  "luminance": 0.17342
}

Semantic roles & 50–950 ramp

primary
#4074BF
secondary
#CAB391
accent
#A04ED9
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4074BF

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

Preview Lab → · Contrast checker → · Palette generator →

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