#4074BE#4074BE

#4074BE is a mid, vivid blue. Relative luminance 0.173; OKLCH L 55.9% C 0.128 H 257.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4074BE
RGBrgb(64, 116, 190)
HSLhsl(215, 50%, 50%)
HSVhsv(215, 66%, 75%)
CMYKcmyk(66.3%, 38.9%, 0%, 25.5%)
CIE-LABlab(48.63, 6.68, -44.00)
CIE-LCHlch(48.63, 44.51, 278.63°)
OKLaboklab(55.89% -0.0279 -0.1252)
OKLCHoklch(55.89% 0.128 257.5)
XYZxyz(17.6507, 17.2967, 51.1136)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074BE #BE8A40
analogous
#40B3BE #4074BE #4B40BE
triadic
#4074BE #BE4074 #74BE40
tetradic
#4074BE #BE40B3 #BE8A40 #40BE4B
square
#4074BE #BE40B3 #BE8A40 #40BE4B
split-complementary
#4074BE #BE4B40 #B3BE40
monochromatic
#213C62 #315890 #4074BE #6D95CE #9BB6DD

Accessibility & contrast

On white

4.71
#4074BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#4074BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4074BE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074BE#FFFFFF#000000##FFFFFF
##4074BE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#537AC1
Deuteranopia (green-blind)
#406EBC
Tritanopia (blue-blind)
#008590
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4074be;
/* rgb */ color: rgb(64, 116, 190);
/* oklch */ color: oklch(55.9% 0.128 257.5);
Tailwind
colors: {
  custom: {
    50: '#829bd2',
    500: '#4074be',
    950: '#000000',
  },
}
SCSS
$custom: #4074be;
$custom-light: #829bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#4074be",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 190
  },
  "hsl": {
    "h": 215.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55891,
    "c": 0.12827,
    "h": 257.5
  },
  "luminance": 0.17298
}

Semantic roles & 50–950 ramp

primary
#4074BE
secondary
#C9B290
accent
#A04FD9
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #4074BE

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

Preview Lab → · Contrast checker → · Palette generator →

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