#4050C3#4050C3

#4050C3 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.179 H 272.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4050C3
RGBrgb(64, 80, 195)
HSLhsl(233, 52%, 51%)
HSVhsv(233, 67%, 76%)
CMYKcmyk(67.2%, 59%, 0%, 23.5%)
CIE-LABlab(39.18, 31.32, -62.10)
CIE-LCHlch(39.18, 69.55, 296.76°)
OKLaboklab(48.8% 0.0061 -0.1789)
OKLCHoklch(48.8% 0.179 272)
XYZxyz(14.8300, 10.7661, 52.9157)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C3 #C3B340
analogous
#4091C3 #4050C3 #7140C3
triadic
#4050C3 #C34050 #50C340
tetradic
#4050C3 #C34091 #C3B340 #40C371
square
#4050C3 #C34091 #C3B340 #40C371
split-complementary
#4050C3 #C37140 #91C340
monochromatic
#212968 #2F3C97 #4050C3 #6F7BD2 #9DA5E0

Accessibility & contrast

On white

6.66
#4050C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4050C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C3#FFFFFF#000000##FFFFFF
##4050C31.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0057C1
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050c3;
/* rgb */ color: rgb(64, 80, 195);
/* oklch */ color: oklch(48.8% 0.179 272.0);
Tailwind
colors: {
  custom: {
    50: '#8481d6',
    500: '#4050c3',
    950: '#000000',
  },
}
SCSS
$custom: #4050c3;
$custom-light: #8481d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c3",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 195
  },
  "hsl": {
    "h": 232.672,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48799,
    "c": 0.17902,
    "h": 272
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4050C3

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

Preview Lab → · Contrast checker → · Palette generator →

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