#4050B2#4050B2

#4050B2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.156 H 272.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#4050B2
RGBrgb(64, 80, 178)
HSLhsl(232, 47%, 47%)
HSVhsv(232, 64%, 70%)
CMYKcmyk(64%, 55.1%, 0%, 30.2%)
CIE-LABlab(37.91, 25.33, -54.19)
CIE-LCHlch(37.91, 59.82, 295.05°)
OKLaboklab(47.45% 0.0057 -0.1556)
OKLCHoklch(47.45% 0.156 272.1)
XYZxyz(13.0162, 10.0405, 43.3629)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4050B2 #B2A240
analogous
#4089B2 #4050B2 #6940B2
triadic
#4050B2 #B24050 #50B240
tetradic
#4050B2 #B24089 #B2A240 #40B269
square
#4050B2 #B24089 #B2A240 #40B269
split-complementary
#4050B2 #B26940 #89B240
monochromatic
#202858 #303C85 #4050B2 #6775C8 #949ED8

Accessibility & contrast

On white

6.98
#4050B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4050B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4050B2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4050B2#FFFFFF#000000##FFFFFF
##4050B21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035EB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4050b2;
/* rgb */ color: rgb(64, 80, 178);
/* oklch */ color: oklch(47.5% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#8180ca',
    500: '#4050b2',
    950: '#000000',
  },
}
SCSS
$custom: #4050b2;
$custom-light: #8180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4050b2",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 231.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47453,
    "c": 0.15576,
    "h": 272.1
  },
  "luminance": 0.10042
}

Semantic roles & 50–950 ramp

primary
#4050B2
secondary
#C4BC8A
accent
#C451D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #4050B2

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

Preview Lab → · Contrast checker → · Palette generator →

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