#4023D4#4023D4

#4023D4 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 44.1% C 0.244 H 276.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4023D4
RGBrgb(64, 35, 212)
HSLhsl(250, 72%, 48%)
HSVhsv(250, 83%, 83%)
CMYKcmyk(69.8%, 83.5%, 0%, 16.9%)
CIE-LABlab(31.91, 61.25, -83.94)
CIE-LCHlch(31.91, 103.91, 306.12°)
OKLaboklab(44.07% 0.0294 -0.2425)
OKLCHoklch(44.07% 0.244 276.9)
XYZxyz(14.5952, 7.0442, 62.8651)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023D4 #B7D423
analogous
#235ED4 #4023D4 #9923D4
triadic
#4023D4 #D44023 #23D440
tetradic
#4023D4 #D4235E #B7D423 #23D499
square
#4023D4 #D4235E #B7D423 #23D499
split-complementary
#4023D4 #D49923 #5ED423
monochromatic
#20126B #301A9F #4023D4 #6952E2 #9786EB

Accessibility & contrast

On white

8.72
#4023D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4023D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023D4
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023D4#FFFFFF#000000##FFFFFF
##4023D41.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D9
Deuteranopia (green-blind)
#0043D1
Tritanopia (blue-blind)
#005D7F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4023d4;
/* rgb */ color: rgb(64, 35, 212);
/* oklch */ color: oklch(44.1% 0.244 276.9);
Tailwind
colors: {
  custom: {
    50: '#8b66e3',
    500: '#4023d4',
    950: '#000000',
  },
}
SCSS
$custom: #4023d4;
$custom-light: #8b66e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4023d4",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 249.831,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44071,
    "c": 0.24429,
    "h": 276.9
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#4023D4
secondary
#C6D47E
accent
#EE39D1
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0616
muted
#7E7A84

Preview Lab

Preview with #4023D4

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

Preview Lab → · Contrast checker → · Palette generator →

#4023D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva