#4028B9#4028B9

#4028B9 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.7% C 0.210 H 279.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4028B9
RGBrgb(64, 40, 185)
HSLhsl(250, 64%, 44%)
HSVhsv(250, 78%, 73%)
CMYKcmyk(65.4%, 78.4%, 0%, 27.5%)
CIE-LABlab(29.69, 51.28, -71.79)
CIE-LCHlch(29.69, 88.23, 305.54°)
OKLaboklab(41.67% 0.0353 -0.2073)
OKLCHoklch(41.67% 0.21 279.7)
XYZxyz(11.6273, 6.1094, 46.4560)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028B9 #A1B928
analogous
#2859B9 #4028B9 #8928B9
triadic
#4028B9 #B94028 #28B940
tetradic
#4028B9 #B92859 #A1B928 #28B989
square
#4028B9 #B92859 #A1B928 #28B989
split-complementary
#4028B9 #B98928 #59B928
monochromatic
#1D1254 #2F1D87 #4028B9 #5F47D7 #8B79E2

Accessibility & contrast

On white

9.45
#4028B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4028B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028B9
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028B9#FFFFFF#000000##FFFFFF
##4028B91.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4028b9;
/* rgb */ color: rgb(64, 40, 185);
/* oklch */ color: oklch(41.7% 0.210 279.7);
Tailwind
colors: {
  custom: {
    50: '#8566cf',
    500: '#4028b9',
    950: '#000000',
  },
}
SCSS
$custom: #4028b9;
$custom-light: #8566cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4028b9",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 249.931,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41667,
    "c": 0.21027,
    "h": 279.7
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#4028B9
secondary
#BCCA73
accent
#E740CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4028B9

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

Preview Lab → · Contrast checker → · Palette generator →

#4028B9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva