#4046D2#4046D2

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

Color values

HEX#4046D2
RGBrgb(64, 70, 210)
HSLhsl(238, 62%, 54%)
HSVhsv(238, 70%, 82%)
CMYKcmyk(69.5%, 66.7%, 0%, 17.6%)
CIE-LABlab(38.06, 42.68, -72.63)
CIE-LCHlch(38.06, 84.24, 300.44°)
OKLaboklab(48.36% 0.0127 -0.2099)
OKLCHoklch(48.36% 0.21 273.5)
XYZxyz(15.9335, 10.1219, 62.0743)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046D2 #D2CC40
analogous
#408FD2 #4046D2 #8340D2
triadic
#4046D2 #D24046 #46D240
tetradic
#4046D2 #D2408F #D2CC40 #40D283
square
#4046D2 #D2408F #D2CC40 #40D283
split-complementary
#4046D2 #D28340 #8FD240
monochromatic
#1D217B #292EAC #4046D2 #7276DE #A3A6E9

Accessibility & contrast

On white

6.94
#4046D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4046D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4046D2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046D2#FFFFFF#000000##FFFFFF
##4046D21.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0053CF
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4046d2;
/* rgb */ color: rgb(64, 70, 210);
/* oklch */ color: oklch(48.4% 0.210 273.5);
Tailwind
colors: {
  custom: {
    50: '#887ae1',
    500: '#4046d2',
    950: '#000000',
  },
}
SCSS
$custom: #4046d2;
$custom-light: #887ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#4046d2",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 237.534,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.4836,
    "c": 0.21024,
    "h": 273.5
  },
  "luminance": 0.10123
}

Semantic roles & 50–950 ramp

primary
#4046D2
secondary
#D6D498
accent
#DE43E5
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4046D2

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

Preview Lab → · Contrast checker → · Palette generator →

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