#4028BA#4028BA

#4028BA is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.8% C 0.211 H 279.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4028BA
RGBrgb(64, 40, 186)
HSLhsl(250, 65%, 44%)
HSVhsv(250, 78%, 73%)
CMYKcmyk(65.6%, 78.5%, 0%, 27.1%)
CIE-LABlab(29.79, 51.58, -72.21)
CIE-LCHlch(29.79, 88.74, 305.54°)
OKLaboklab(41.77% 0.035 -0.2085)
OKLCHoklch(41.77% 0.211 279.5)
XYZxyz(11.7332, 6.1518, 47.0140)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028BA #A2BA28
analogous
#2859BA #4028BA #8928BA
triadic
#4028BA #BA4028 #28BA40
tetradic
#4028BA #BA2859 #A2BA28 #28BA89
square
#4028BA #BA2859 #A2BA28 #28BA89
split-complementary
#4028BA #BA8928 #59BA28
monochromatic
#1D1255 #2F1D88 #4028BA #5F48D8 #8B7AE2

Accessibility & contrast

On white

9.41
#4028BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4028BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028BA
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028BA#FFFFFF#000000##FFFFFF
##4028BA1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4028ba;
/* rgb */ color: rgb(64, 40, 186);
/* oklch */ color: oklch(41.8% 0.211 279.5);
Tailwind
colors: {
  custom: {
    50: '#8666d0',
    500: '#4028ba',
    950: '#000000',
  },
}
SCSS
$custom: #4028ba;
$custom-light: #8666d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4028ba",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 249.863,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41772,
    "c": 0.21142,
    "h": 279.5
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#4028BA
secondary
#BCCA73
accent
#E840CC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #4028BA

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

Preview Lab → · Contrast checker → · Palette generator →

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