#4050A2#4050A2

#4050A2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.133 H 271.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#4050A2
RGBrgb(64, 80, 162)
HSLhsl(230, 43%, 44%)
HSVhsv(230, 60%, 64%)
CMYKcmyk(60.5%, 50.6%, 0%, 36.5%)
CIE-LABlab(36.81, 19.69, -46.46)
CIE-LCHlch(36.81, 50.46, 292.97°)
OKLaboklab(46.27% 0.0045 -0.1329)
OKLCHoklch(46.27% 0.133 271.9)
XYZxyz(11.5024, 9.4350, 35.3904)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050A2 #A29240
analogous
#4081A2 #4050A2 #6140A2
triadic
#4050A2 #A24050 #50A240
tetradic
#4050A2 #A24081 #A29240 #40A261
square
#4050A2 #A24081 #A29240 #40A261
split-complementary
#4050A2 #A26140 #81A240
monochromatic
#1D254A #2F3A76 #4050A2 #5F6FC0 #8B97D1

Accessibility & contrast

On white

7.27
#4050A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4050A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4050A2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050A2#FFFFFF#000000##FFFFFF
##4050A21.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#1153A0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4050a2;
/* rgb */ color: rgb(64, 80, 162);
/* oklch */ color: oklch(46.3% 0.133 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e80be',
    500: '#4050a2',
    950: '#000000',
  },
}
SCSS
$custom: #4050a2;
$custom-light: #7e80be;
$custom-dark: #000000;
JSON
{
  "hex": "#4050a2",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 162
  },
  "hsl": {
    "h": 230.204,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.13299,
    "h": 271.9
  },
  "luminance": 0.09436
}

Semantic roles & 50–950 ramp

primary
#4050A2
secondary
#BCB382
accent
#BE55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4050A2

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

Preview Lab → · Contrast checker → · Palette generator →

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