#4028BB#4028BB

#4028BB is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.9% C 0.213 H 279.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4028BB
RGBrgb(64, 40, 187)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 73%)
CMYKcmyk(65.8%, 78.6%, 0%, 26.7%)
CIE-LABlab(29.90, 51.88, -72.63)
CIE-LCHlch(29.90, 89.25, 305.54°)
OKLaboklab(41.88% 0.0347 -0.2097)
OKLCHoklch(41.88% 0.213 279.4)
XYZxyz(11.8399, 6.1945, 47.5758)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028BB #A3BB28
analogous
#285ABB #4028BB #8A28BB
triadic
#4028BB #BB4028 #28BB40
tetradic
#4028BB #BB285A #A3BB28 #28BB8A
square
#4028BB #BB285A #A3BB28 #28BB8A
split-complementary
#4028BB #BB8A28 #5ABB28
monochromatic
#1D1256 #2F1D89 #4028BB #6048D8 #8C7BE3

Accessibility & contrast

On white

9.38
#4028BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4028BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028BB
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028BB#FFFFFF#000000##FFFFFF
##4028BB1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBF
Deuteranopia (green-blind)
#0041B8
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4028bb;
/* rgb */ color: rgb(64, 40, 187);
/* oklch */ color: oklch(41.9% 0.213 279.4);
Tailwind
colors: {
  custom: {
    50: '#8666d1',
    500: '#4028bb',
    950: '#000000',
  },
}
SCSS
$custom: #4028bb;
$custom-light: #8666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4028bb",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 249.796,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41877,
    "c": 0.21257,
    "h": 279.4
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#4028BB
secondary
#BDCB74
accent
#E840CC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4028BB

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

Preview Lab → · Contrast checker → · Palette generator →

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