#4046C2#4046C2

#4046C2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.9% C 0.190 H 274.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4046C2
RGBrgb(64, 70, 194)
HSLhsl(237, 52%, 51%)
HSVhsv(237, 67%, 76%)
CMYKcmyk(67%, 63.9%, 0%, 23.9%)
CIE-LABlab(36.68, 37.25, -65.61)
CIE-LCHlch(36.68, 75.44, 299.59°)
OKLaboklab(46.93% 0.0141 -0.1893)
OKLCHoklch(46.93% 0.19 274.3)
XYZxyz(14.0389, 9.3641, 52.0961)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046C2 #C2BC40
analogous
#4087C2 #4046C2 #7B40C2
triadic
#4046C2 #C24046 #46C240
tetradic
#4046C2 #C24087 #C2BC40 #40C27B
square
#4046C2 #C24087 #C2BC40 #40C27B
split-complementary
#4046C2 #C27B40 #87C240
monochromatic
#212467 #303495 #4046C2 #6E73D1 #9DA0E0

Accessibility & contrast

On white

7.31
#4046C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4046C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046C2
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046C2#FFFFFF#000000##FFFFFF
##4046C21.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4046c2;
/* rgb */ color: rgb(64, 70, 194);
/* oklch */ color: oklch(46.9% 0.190 274.3);
Tailwind
colors: {
  custom: {
    50: '#857ad5',
    500: '#4046c2',
    950: '#000000',
  },
}
SCSS
$custom: #4046c2;
$custom-light: #857ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#4046c2",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 237.231,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46925,
    "c": 0.18981,
    "h": 274.3
  },
  "luminance": 0.09365
}

Semantic roles & 50–950 ramp

primary
#4046C2
secondary
#CCC992
accent
#D44DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4046C2

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

Preview Lab → · Contrast checker → · Palette generator →

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