#4050CA#4050CA

#4050CA is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.4% C 0.188 H 271.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#4050CA
RGBrgb(64, 80, 202)
HSLhsl(233, 57%, 52%)
HSVhsv(233, 68%, 79%)
CMYKcmyk(68.3%, 60.4%, 0%, 20.8%)
CIE-LABlab(39.73, 33.77, -65.27)
CIE-LCHlch(39.73, 73.49, 297.36°)
OKLaboklab(49.38% 0.0061 -0.1882)
OKLCHoklch(49.38% 0.188 271.9)
XYZxyz(15.6401, 11.0901, 57.1820)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050CA #CABA40
analogous
#4095CA #4050CA #7540CA
triadic
#4050CA #CA4050 #50CA40
tetradic
#4050CA #CA4095 #CABA40 #40CA75
square
#4050CA #CA4095 #CABA40 #40CA75
split-complementary
#4050CA #CA7540 #95CA40
monochromatic
#1F2970 #2C3AA0 #4050CA #707CD7 #A0A8E5

Accessibility & contrast

On white

6.52
#4050CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#4050CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050CA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050CA#FFFFFF#000000##FFFFFF
##4050CA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4050ca;
/* rgb */ color: rgb(64, 80, 202);
/* oklch */ color: oklch(49.4% 0.188 271.9);
Tailwind
colors: {
  custom: {
    50: '#8681db',
    500: '#4050ca',
    950: '#000000',
  },
}
SCSS
$custom: #4050ca;
$custom-light: #8681db;
$custom-dark: #000000;
JSON
{
  "hex": "#4050ca",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 202
  },
  "hsl": {
    "h": 233.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49377,
    "c": 0.18833,
    "h": 271.9
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#4050CA
secondary
#D1CA95
accent
#CE48E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4050CA

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

Preview Lab → · Contrast checker → · Palette generator →

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