#4074C2#4074C2

#4074C2 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.1% C 0.134 H 258.4°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#4074C2
RGBrgb(64, 116, 194)
HSLhsl(216, 52%, 51%)
HSVhsv(216, 67%, 76%)
CMYKcmyk(67%, 40.2%, 0%, 23.9%)
CIE-LABlab(48.85, 8.10, -45.95)
CIE-LCHlch(48.85, 46.66, 279.99°)
OKLaboklab(56.13% -0.027 -0.1309)
OKLCHoklch(56.13% 0.134 258.4)
XYZxyz(18.0938, 17.4740, 53.4477)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4074C2 #C28E40
analogous
#40B5C2 #4074C2 #4D40C2
triadic
#4074C2 #C24074 #74C240
tetradic
#4074C2 #C240B5 #C28E40 #40C24D
square
#4074C2 #C240B5 #C28E40 #40C24D
split-complementary
#4074C2 #C24D40 #B5C240
monochromatic
#213D67 #305895 #4074C2 #6E96D1 #9DB8E0

Accessibility & contrast

On white

4.67
#4074C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#4074C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4074C2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4074C2#FFFFFF#000000##FFFFFF
##4074C21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#507BC5
Deuteranopia (green-blind)
#3D6EC0
Tritanopia (blue-blind)
#008691
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4074c2;
/* rgb */ color: rgb(64, 116, 194);
/* oklch */ color: oklch(56.1% 0.134 258.4);
Tailwind
colors: {
  custom: {
    50: '#829bd5',
    500: '#4074c2',
    950: '#000000',
  },
}
SCSS
$custom: #4074c2;
$custom-light: #829bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#4074c2",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 194
  },
  "hsl": {
    "h": 216,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.13368,
    "h": 258.4
  },
  "luminance": 0.17476
}

Semantic roles & 50–950 ramp

primary
#4074C2
secondary
#CCB592
accent
#A24DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4074C2

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

Preview Lab → · Contrast checker → · Palette generator →

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