#4074CC#4074CC

#4074CC is a mid, vivid blue. Relative luminance 0.179; OKLCH L 56.8% C 0.147 H 260.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#4074CC
RGBrgb(64, 116, 204)
HSLhsl(218, 58%, 53%)
HSVhsv(218, 69%, 80%)
CMYKcmyk(68.6%, 43.1%, 0%, 20%)
CIE-LABlab(49.42, 11.67, -50.77)
CIE-LCHlch(49.42, 52.10, 282.94°)
OKLaboklab(56.76% -0.0249 -0.1451)
OKLCHoklch(56.76% 0.147 260.2)
XYZxyz(19.2549, 17.9384, 59.5627)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074CC #CC9840
analogous
#40BACC #4074CC #5240CC
triadic
#4074CC #CC4074 #74CC40
tetradic
#4074CC #CC40BA #CC9840 #40CC52
square
#4074CC #CC40BA #CC9840 #40CC52
split-complementary
#4074CC #CC5240 #BACC40
monochromatic
#1F3E73 #2C58A3 #4074CC #7097D9 #A1BAE6

Accessibility & contrast

On white

4.58
#4074CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#4074CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4074CC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074CC#FFFFFF#000000##000000
##4074CC1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCF
Deuteranopia (green-blind)
#326FCA
Tritanopia (blue-blind)
#008896
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #4074cc;
/* rgb */ color: rgb(64, 116, 204);
/* oklch */ color: oklch(56.8% 0.147 260.2);
Tailwind
colors: {
  custom: {
    50: '#849bdc',
    500: '#4074cc',
    950: '#000000',
  },
}
SCSS
$custom: #4074cc;
$custom-light: #849bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4074cc",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 204
  },
  "hsl": {
    "h": 217.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56759,
    "c": 0.14721,
    "h": 260.2
  },
  "luminance": 0.1794
}

Semantic roles & 50–950 ramp

primary
#4074CC
secondary
#D2BC95
accent
#A847E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #4074CC

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

Preview Lab → · Contrast checker → · Palette generator →

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