#4043D8#4043D8

#4043D8 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.4% C 0.221 H 273.6°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4043D8
RGBrgb(64, 67, 216)
HSLhsl(239, 66%, 55%)
HSVhsv(239, 70%, 85%)
CMYKcmyk(70.4%, 69%, 0%, 15.3%)
CIE-LABlab(37.95, 46.44, -76.26)
CIE-LCHlch(37.95, 89.29, 301.34°)
OKLaboklab(48.45% 0.0139 -0.2205)
OKLCHoklch(48.45% 0.221 273.6)
XYZxyz(16.5120, 10.0606, 66.0241)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4043D8 #D8D540
analogous
#408FD8 #4043D8 #8940D8
triadic
#4043D8 #D84043 #43D840
tetradic
#4043D8 #D8408F #D8D540 #40D889
square
#4043D8 #D8408F #D8D540 #40D889
split-complementary
#4043D8 #D88940 #8FD840
monochromatic
#1B1D83 #2528B6 #4043D8 #7375E2 #A6A7ED

Accessibility & contrast

On white

6.97
#4043D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4043D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4043D8
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4043D8#FFFFFF#000000##FFFFFF
##4043D81.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0052D5
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4043d8;
/* rgb */ color: rgb(64, 67, 216);
/* oklch */ color: oklch(48.4% 0.221 273.6);
Tailwind
colors: {
  custom: {
    50: '#8a78e5',
    500: '#4043d8',
    950: '#000000',
  },
}
SCSS
$custom: #4043d8;
$custom-light: #8a78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4043d8",
  "rgb": {
    "r": 64,
    "g": 67,
    "b": 216
  },
  "hsl": {
    "h": 238.816,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48446,
    "c": 0.22092,
    "h": 273.6
  },
  "luminance": 0.10062
}

Semantic roles & 50–950 ramp

primary
#4043D8
secondary
#DAD99A
accent
#E63FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4043D8

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

Preview Lab → · Contrast checker → · Palette generator →

#4043D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva