#4077CA#4077CA

#4077CA is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.3% C 0.141 H 258.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#4077CA
RGBrgb(64, 119, 202)
HSLhsl(216, 57%, 52%)
HSVhsv(216, 68%, 79%)
CMYKcmyk(68.3%, 41.1%, 0%, 20.8%)
CIE-LABlab(50.15, 9.09, -48.47)
CIE-LCHlch(50.15, 49.31, 280.63°)
OKLaboklab(57.29% -0.0282 -0.1383)
OKLCHoklch(57.29% 0.141 258.5)
XYZxyz(19.3680, 18.5459, 58.4247)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4077CA #CA9340
analogous
#40BCCA #4077CA #4E40CA
triadic
#4077CA #CA4077 #77CA40
tetradic
#4077CA #CA40BC #CA9340 #40CA4E
square
#4077CA #CA40BC #CA9340 #40CA4E
split-complementary
#4077CA #CA4E40 #BCCA40
monochromatic
#1F4070 #2C5BA0 #4077CA #7099D7 #A0BBE5

Accessibility & contrast

On white

4.46
#4077CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#4077CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4077CA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4077CA#FFFFFF#000000##000000
##4077CA1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#507ECD
Deuteranopia (green-blind)
#3A71C8
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4077ca;
/* rgb */ color: rgb(64, 119, 202);
/* oklch */ color: oklch(57.3% 0.141 258.5);
Tailwind
colors: {
  custom: {
    50: '#849dda',
    500: '#4077ca',
    950: '#000000',
  },
}
SCSS
$custom: #4077ca;
$custom-light: #849dda;
$custom-dark: #000000;
JSON
{
  "hex": "#4077ca",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 202
  },
  "hsl": {
    "h": 216.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57287,
    "c": 0.1411,
    "h": 258.5
  },
  "luminance": 0.18548
}

Semantic roles & 50–950 ramp

primary
#4077CA
secondary
#D1B995
accent
#A348E0
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4077CA

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

Preview Lab → · Contrast checker → · Palette generator →

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