#4028C3#4028C3

#4028C3 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.7% C 0.222 H 278.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4028C3
RGBrgb(64, 40, 195)
HSLhsl(249, 66%, 46%)
HSVhsv(249, 79%, 76%)
CMYKcmyk(67.2%, 79.5%, 0%, 23.5%)
CIE-LABlab(30.75, 54.24, -75.94)
CIE-LCHlch(30.75, 93.32, 305.54°)
OKLaboklab(42.72% 0.0325 -0.2193)
OKLCHoklch(42.72% 0.222 278.4)
XYZxyz(12.7203, 6.5466, 52.2125)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028C3 #ABC328
analogous
#285EC3 #4028C3 #8D28C3
triadic
#4028C3 #C34028 #28C340
tetradic
#4028C3 #C3285E #ABC328 #28C38D
square
#4028C3 #C3285E #ABC328 #28C38D
split-complementary
#4028C3 #C38D28 #5EC328
monochromatic
#1F135D #2F1E90 #4028C3 #634EDB #9080E5

Accessibility & contrast

On white

9.09
#4028C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4028C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028C3
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028C3#FFFFFF#000000##FFFFFF
##4028C31.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC7
Deuteranopia (green-blind)
#0042C0
Tritanopia (blue-blind)
#005776
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4028c3;
/* rgb */ color: rgb(64, 40, 195);
/* oklch */ color: oklch(42.7% 0.222 278.4);
Tailwind
colors: {
  custom: {
    50: '#8767d7',
    500: '#4028c3',
    950: '#000000',
  },
}
SCSS
$custom: #4028c3;
$custom-light: #8767d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4028c3",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 249.29,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42723,
    "c": 0.22173,
    "h": 278.4
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#4028C3
secondary
#C1CE79
accent
#E93FCF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4028C3

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

Preview Lab → · Contrast checker → · Palette generator →

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