#4028BC#4028BC

#4028BC is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 42.0% C 0.214 H 279.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4028BC
RGBrgb(64, 40, 188)
HSLhsl(250, 65%, 45%)
HSVhsv(250, 79%, 74%)
CMYKcmyk(66%, 78.7%, 0%, 26.3%)
CIE-LABlab(30.00, 52.17, -73.05)
CIE-LCHlch(30.00, 89.77, 305.54°)
OKLaboklab(41.98% 0.0344 -0.2109)
OKLCHoklch(41.98% 0.214 279.3)
XYZxyz(11.9473, 6.2374, 48.1415)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028BC #A4BC28
analogous
#285ABC #4028BC #8A28BC
triadic
#4028BC #BC4028 #28BC40
tetradic
#4028BC #BC285A #A4BC28 #28BC8A
square
#4028BC #BC285A #A4BC28 #28BC8A
split-complementary
#4028BC #BC8A28 #5ABC28
monochromatic
#1E1357 #2F1D8A #4028BC #6049D8 #8C7BE3

Accessibility & contrast

On white

9.34
#4028BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4028BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028BC
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028BC#FFFFFF#000000##FFFFFF
##4028BC1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4028bc;
/* rgb */ color: rgb(64, 40, 188);
/* oklch */ color: oklch(42.0% 0.214 279.3);
Tailwind
colors: {
  custom: {
    50: '#8666d2',
    500: '#4028bc',
    950: '#000000',
  },
}
SCSS
$custom: #4028bc;
$custom-light: #8666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4028bc",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 249.73,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.21373,
    "h": 279.3
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#4028BC
secondary
#BDCB75
accent
#E840CD
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4028BC

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

Preview Lab → · Contrast checker → · Palette generator →

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