#4077C5#4077C5

#4077C5 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.0% C 0.134 H 257.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#4077C5
RGBrgb(64, 119, 197)
HSLhsl(215, 53%, 51%)
HSVhsv(215, 68%, 77%)
CMYKcmyk(67.5%, 39.6%, 0%, 22.7%)
CIE-LABlab(49.87, 7.31, -46.05)
CIE-LCHlch(49.87, 46.63, 279.02°)
OKLaboklab(56.98% -0.0293 -0.1312)
OKLCHoklch(56.98% 0.134 257.4)
XYZxyz(18.7856, 18.3130, 55.3572)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077C5 #C58E40
analogous
#40B9C5 #4077C5 #4B40C5
triadic
#4077C5 #C54077 #77C540
tetradic
#4077C5 #C540B9 #C58E40 #40C54B
square
#4077C5 #C540B9 #C58E40 #40C54B
split-complementary
#4077C5 #C54B40 #B9C540
monochromatic
#203F6A #2F5B99 #4077C5 #6F98D3 #9EBAE2

Accessibility & contrast

On white

4.50
#4077C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#4077C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077C5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077C5#FFFFFF#000000##000000
##4077C51.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#547DC8
Deuteranopia (green-blind)
#3F71C3
Tritanopia (blue-blind)
#008994
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4077c5;
/* rgb */ color: rgb(64, 119, 197);
/* oklch */ color: oklch(57.0% 0.134 257.4);
Tailwind
colors: {
  custom: {
    50: '#839dd7',
    500: '#4077c5',
    950: '#000000',
  },
}
SCSS
$custom: #4077c5;
$custom-light: #839dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4077c5",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 197
  },
  "hsl": {
    "h": 215.188,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56981,
    "c": 0.13439,
    "h": 257.4
  },
  "luminance": 0.18315
}

Semantic roles & 50–950 ramp

primary
#4077C5
secondary
#CEB593
accent
#A14BDD
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4077C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4077C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva