#4024EB#4024EB

#4024EB is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.7% C 0.268 H 274.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4024EB
RGBrgb(64, 36, 235)
HSLhsl(248, 83%, 53%)
HSVhsv(248, 85%, 92%)
CMYKcmyk(72.8%, 84.7%, 0%, 7.8%)
CIE-LABlab(34.70, 67.20, -92.50)
CIE-LCHlch(34.70, 114.33, 306.00°)
OKLaboklab(46.74% 0.0223 -0.2673)
OKLCHoklch(46.74% 0.268 274.8)
XYZxyz(17.7357, 8.3481, 79.2578)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024EB #CFEB24
analogous
#246BEB #4024EB #A324EB
triadic
#4024EB #EB4024 #24EB40
tetradic
#4024EB #EB246B #CFEB24 #24EBA3
square
#4024EB #EB246B #CFEB24 #24EBA3
split-complementary
#4024EB #EBA324 #6BEB24
monochromatic
#1E0C88 #2A12C0 #4024EB #715CF0 #A294F5

Accessibility & contrast

On white

7.87
#4024EB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4024EB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024EB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024EB#FFFFFF#000000##FFFFFF
##4024EB1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AF0
Deuteranopia (green-blind)
#0048E8
Tritanopia (blue-blind)
#00678D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4024eb;
/* rgb */ color: rgb(64, 36, 235);
/* oklch */ color: oklch(46.7% 0.268 274.8);
Tailwind
colors: {
  custom: {
    50: '#9068f3',
    500: '#4024eb',
    950: '#000000',
  },
}
SCSS
$custom: #4024eb;
$custom-light: #9068f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4024eb",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 235
  },
  "hsl": {
    "h": 248.442,
    "s": 83.264,
    "l": 53.137
  },
  "oklch": {
    "l": 0.46744,
    "c": 0.26827,
    "h": 274.8
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#4024EB
secondary
#D4E08B
accent
#FA2EDD
background
#FAF6FF
surface
#F3EBFF
border
#CDC6D7
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #4024EB

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

Preview Lab → · Contrast checker → · Palette generator →

#4024EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva