#4050C2#4050C2

#4050C2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.178 H 272.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#4050C2
RGBrgb(64, 80, 194)
HSLhsl(233, 52%, 51%)
HSVhsv(233, 67%, 76%)
CMYKcmyk(67%, 58.8%, 0%, 23.9%)
CIE-LABlab(39.11, 30.96, -61.64)
CIE-LCHlch(39.11, 68.98, 296.67°)
OKLaboklab(48.72% 0.0061 -0.1776)
OKLCHoklch(48.72% 0.178 272)
XYZxyz(14.7173, 10.7210, 52.3222)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C2 #C2B240
analogous
#4091C2 #4050C2 #7140C2
triadic
#4050C2 #C24050 #50C240
tetradic
#4050C2 #C24091 #C2B240 #40C271
square
#4050C2 #C24091 #C2B240 #40C271
split-complementary
#4050C2 #C27140 #91C240
monochromatic
#212967 #303C95 #4050C2 #6E7BD1 #9DA5E0

Accessibility & contrast

On white

6.68
#4050C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#4050C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C2#FFFFFF#000000##FFFFFF
##4050C21.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050c2;
/* rgb */ color: rgb(64, 80, 194);
/* oklch */ color: oklch(48.7% 0.178 272.0);
Tailwind
colors: {
  custom: {
    50: '#8481d5',
    500: '#4050c2',
    950: '#000000',
  },
}
SCSS
$custom: #4050c2;
$custom-light: #8481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c2",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 194
  },
  "hsl": {
    "h": 232.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48718,
    "c": 0.17767,
    "h": 272
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#4050C2
secondary
#CCC592
accent
#CA4DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4050C2

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

Preview Lab → · Contrast checker → · Palette generator →

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