#4046D8#4046D8

#4046D8 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.9% C 0.218 H 273.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#4046D8
RGBrgb(64, 70, 216)
HSLhsl(238, 66%, 55%)
HSVhsv(238, 70%, 85%)
CMYKcmyk(70.4%, 67.6%, 0%, 15.3%)
CIE-LABlab(38.60, 44.69, -75.20)
CIE-LCHlch(38.60, 87.48, 300.72°)
OKLaboklab(48.91% 0.0121 -0.2174)
OKLCHoklch(48.91% 0.218 273.2)
XYZxyz(16.6950, 10.4265, 66.0851)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046D8 #D8D240
analogous
#4092D8 #4046D8 #8640D8
triadic
#4046D8 #D84046 #46D840
tetradic
#4046D8 #D84092 #D8D240 #40D886
square
#4046D8 #D84092 #D8D240 #40D886
split-complementary
#4046D8 #D88640 #92D840
monochromatic
#1B1F83 #252BB6 #4046D8 #7377E2 #A6A8ED

Accessibility & contrast

On white

6.81
#4046D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4046D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4046D8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046D8#FFFFFF#000000##FFFFFF
##4046D81.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DC
Deuteranopia (green-blind)
#0054D5
Tritanopia (blue-blind)
#006D89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4046d8;
/* rgb */ color: rgb(64, 70, 216);
/* oklch */ color: oklch(48.9% 0.218 273.2);
Tailwind
colors: {
  custom: {
    50: '#897ae5',
    500: '#4046d8',
    950: '#000000',
  },
}
SCSS
$custom: #4046d8;
$custom-light: #897ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#4046d8",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 216
  },
  "hsl": {
    "h": 237.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48912,
    "c": 0.21771,
    "h": 273.2
  },
  "luminance": 0.10428
}

Semantic roles & 50–950 ramp

primary
#4046D8
secondary
#DAD79A
accent
#E23FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4046D8

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

Preview Lab → · Contrast checker → · Palette generator →

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