#4074BD#4074BD

#4074BD is a mid, vivid blue. Relative luminance 0.173; OKLCH L 55.8% C 0.127 H 257.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#4074BD
RGBrgb(64, 116, 189)
HSLhsl(215, 49%, 50%)
HSVhsv(215, 66%, 74%)
CMYKcmyk(66.1%, 38.6%, 0%, 25.9%)
CIE-LABlab(48.58, 6.32, -43.51)
CIE-LCHlch(48.58, 43.97, 278.27°)
OKLaboklab(55.83% -0.0281 -0.1238)
OKLCHoklch(55.83% 0.127 257.2)
XYZxyz(17.5417, 17.2532, 50.5400)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074BD #BD8940
analogous
#40B3BD #4074BD #4B40BD
triadic
#4074BD #BD4074 #74BD40
tetradic
#4074BD #BD40B3 #BD8940 #40BD4B
square
#4074BD #BD40B3 #BD8940 #40BD4B
split-complementary
#4074BD #BD4B40 #B3BD40
monochromatic
#213C62 #31588F #4074BD #6D95CD #9AB6DD

Accessibility & contrast

On white

4.72
#4074BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#4074BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4074BD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074BD#FFFFFF#000000##FFFFFF
##4074BD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#537AC0
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#00858F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4074bd;
/* rgb */ color: rgb(64, 116, 189);
/* oklch */ color: oklch(55.8% 0.127 257.2);
Tailwind
colors: {
  custom: {
    50: '#829bd1',
    500: '#4074bd',
    950: '#000000',
  },
}
SCSS
$custom: #4074bd;
$custom-light: #829bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4074bd",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 189
  },
  "hsl": {
    "h": 215.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.12693,
    "h": 257.2
  },
  "luminance": 0.17255
}

Semantic roles & 50–950 ramp

primary
#4074BD
secondary
#C9B190
accent
#9F4FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #4074BD

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

Preview Lab → · Contrast checker → · Palette generator →

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