#4050C0#4050C0

#4050C0 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.6% C 0.175 H 272.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#4050C0
RGBrgb(64, 80, 192)
HSLhsl(233, 50%, 50%)
HSVhsv(233, 67%, 75%)
CMYKcmyk(66.7%, 58.3%, 0%, 24.7%)
CIE-LABlab(38.95, 30.26, -60.72)
CIE-LCHlch(38.95, 67.85, 296.49°)
OKLaboklab(48.56% 0.0061 -0.1749)
OKLCHoklch(48.56% 0.175 272)
XYZxyz(14.4942, 10.6318, 51.1472)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050C0 #C0B040
analogous
#4090C0 #4050C0 #7040C0
triadic
#4050C0 #C04050 #50C040
tetradic
#4050C0 #C04090 #C0B040 #40C070
square
#4050C0 #C04090 #C0B040 #40C070
split-complementary
#4050C0 #C07040 #90C040
monochromatic
#212A64 #303D92 #4050C0 #6E7ACF #9CA4DE

Accessibility & contrast

On white

6.72
#4050C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4050C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050C0
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050C0#FFFFFF#000000##FFFFFF
##4050C01.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#0056BE
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4050c0;
/* rgb */ color: rgb(64, 80, 192);
/* oklch */ color: oklch(48.6% 0.175 272.0);
Tailwind
colors: {
  custom: {
    50: '#8481d4',
    500: '#4050c0',
    950: '#000000',
  },
}
SCSS
$custom: #4050c0;
$custom-light: #8481d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4050c0",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 192
  },
  "hsl": {
    "h": 232.5,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48556,
    "c": 0.17498,
    "h": 272
  },
  "luminance": 0.10633
}

Semantic roles & 50–950 ramp

primary
#4050C0
secondary
#CBC391
accent
#C84EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #4050C0

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

Preview Lab → · Contrast checker → · Palette generator →

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