#4027E2#4027E2

#4027E2 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 46.0% C 0.257 H 275.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4027E2
RGBrgb(64, 39, 226)
HSLhsl(248, 76%, 52%)
HSVhsv(248, 83%, 89%)
CMYKcmyk(71.7%, 82.7%, 0%, 11.4%)
CIE-LABlab(34.05, 63.56, -88.45)
CIE-LCHlch(34.05, 108.92, 305.70°)
OKLaboklab(46% 0.024 -0.2557)
OKLCHoklch(46% 0.257 275.4)
XYZxyz(16.5628, 8.0304, 72.6139)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027E2 #C9E227
analogous
#276CE2 #4027E2 #9D27E2
triadic
#4027E2 #E24027 #27E240
tetradic
#4027E2 #E2276C #C9E227 #27E29D
square
#4027E2 #E2276C #C9E227 #27E29D
split-complementary
#4027E2 #E29D27 #6CE227
monochromatic
#1F117E #2D18B4 #4027E2 #705DE9 #9F93F0

Accessibility & contrast

On white

8.06
#4027E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4027E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027E2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027E2#FFFFFF#000000##FFFFFF
##4027E21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058E7
Deuteranopia (green-blind)
#0048DF
Tritanopia (blue-blind)
#006488
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4027e2;
/* rgb */ color: rgb(64, 39, 226);
/* oklch */ color: oklch(46.0% 0.257 275.4);
Tailwind
colors: {
  custom: {
    50: '#8e68ed',
    500: '#4027e2',
    950: '#000000',
  },
}
SCSS
$custom: #4027e2;
$custom-light: #8e68ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4027e2",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 226
  },
  "hsl": {
    "h": 248.021,
    "s": 76.327,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46,
    "c": 0.25679,
    "h": 275.4
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#4027E2
secondary
#D0DB89
accent
#F335D9
background
#F9F6FE
surface
#F2EBFD
border
#CCC6D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #4027E2

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

Preview Lab → · Contrast checker → · Palette generator →

#4027E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva