#4046D1#4046D1

#4046D1 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.3% C 0.209 H 273.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4046D1
RGBrgb(64, 70, 209)
HSLhsl(238, 61%, 54%)
HSVhsv(238, 69%, 82%)
CMYKcmyk(69.4%, 66.5%, 0%, 18%)
CIE-LABlab(37.97, 42.34, -72.20)
CIE-LCHlch(37.97, 83.70, 300.39°)
OKLaboklab(48.27% 0.0128 -0.2086)
OKLCHoklch(48.27% 0.209 273.5)
XYZxyz(15.8093, 10.0722, 61.4202)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046D1 #D1CB40
analogous
#408ED1 #4046D1 #8240D1
triadic
#4046D1 #D14046 #46D140
tetradic
#4046D1 #D1408E #D1CB40 #40D182
square
#4046D1 #D1408E #D1CB40 #40D182
split-complementary
#4046D1 #D18240 #8ED140
monochromatic
#1D2179 #292EAB #4046D1 #7176DD #A3A6E9

Accessibility & contrast

On white

6.97
#4046D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4046D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4046D1
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046D1#FFFFFF#000000##FFFFFF
##4046D11.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)
#0060D5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#006B85
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4046d1;
/* rgb */ color: rgb(64, 70, 209);
/* oklch */ color: oklch(48.3% 0.209 273.5);
Tailwind
colors: {
  custom: {
    50: '#887ae0',
    500: '#4046d1',
    950: '#000000',
  },
}
SCSS
$custom: #4046d1;
$custom-light: #887ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#4046d1",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 209
  },
  "hsl": {
    "h": 237.517,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.20899,
    "h": 273.5
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#4046D1
secondary
#D5D397
accent
#DE44E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4046D1

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

Preview Lab → · Contrast checker → · Palette generator →

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