#4072C2#4072C2

#4072C2 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.7% C 0.136 H 259.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#4072C2
RGBrgb(64, 114, 194)
HSLhsl(217, 52%, 51%)
HSVhsv(217, 67%, 76%)
CMYKcmyk(67%, 41.2%, 0%, 23.9%)
CIE-LABlab(48.28, 9.34, -46.86)
CIE-LCHlch(48.28, 47.78, 281.27°)
OKLaboklab(55.69% -0.025 -0.1336)
OKLCHoklch(55.69% 0.136 259.4)
XYZxyz(17.8658, 17.0179, 53.3717)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4072C2 #C29040
analogous
#40B3C2 #4072C2 #4F40C2
triadic
#4072C2 #C24072 #72C240
tetradic
#4072C2 #C240B3 #C29040 #40C24F
square
#4072C2 #C240B3 #C29040 #40C24F
split-complementary
#4072C2 #C24F40 #B3C240
monochromatic
#213C67 #305795 #4072C2 #6E94D1 #9DB6E0

Accessibility & contrast

On white

4.77
#4072C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4072C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4072C2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4072C2#FFFFFF#000000##FFFFFF
##4072C21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C5
Deuteranopia (green-blind)
#396DC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4072c2;
/* rgb */ color: rgb(64, 114, 194);
/* oklch */ color: oklch(55.7% 0.136 259.4);
Tailwind
colors: {
  custom: {
    50: '#829ad5',
    500: '#4072c2',
    950: '#000000',
  },
}
SCSS
$custom: #4072c2;
$custom-light: #829ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#4072c2",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 194
  },
  "hsl": {
    "h": 216.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55692,
    "c": 0.13594,
    "h": 259.4
  },
  "luminance": 0.1702
}

Semantic roles & 50–950 ramp

primary
#4072C2
secondary
#CCB692
accent
#A44DDB
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #4072C2

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

Preview Lab → · Contrast checker → · Palette generator →

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