#4046BF#4046BF

#4046BF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.7% C 0.186 H 274.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#4046BF
RGBrgb(64, 70, 191)
HSLhsl(237, 50%, 50%)
HSVhsv(237, 66%, 75%)
CMYKcmyk(66.5%, 63.4%, 0%, 25.1%)
CIE-LABlab(36.42, 36.22, -64.26)
CIE-LCHlch(36.42, 73.77, 299.41°)
OKLaboklab(46.66% 0.0143 -0.1853)
OKLCHoklch(46.66% 0.186 274.4)
XYZxyz(13.7054, 9.2307, 50.3396)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046BF #BFB940
analogous
#4086BF #4046BF #7940BF
triadic
#4046BF #BF4046 #46BF40
tetradic
#4046BF #BF4086 #BFB940 #40BF79
square
#4046BF #BF4086 #BFB940 #40BF79
split-complementary
#4046BF #BF7940 #86BF40
monochromatic
#212463 #313591 #4046BF #6E72CE #9C9FDE

Accessibility & contrast

On white

7.38
#4046BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4046BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046BF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046BF#FFFFFF#000000##FFFFFF
##4046BF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4046bf;
/* rgb */ color: rgb(64, 70, 191);
/* oklch */ color: oklch(46.7% 0.186 274.4);
Tailwind
colors: {
  custom: {
    50: '#8479d3',
    500: '#4046bf',
    950: '#000000',
  },
}
SCSS
$custom: #4046bf;
$custom-light: #8479d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4046bf",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 237.165,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46664,
    "c": 0.18589,
    "h": 274.4
  },
  "luminance": 0.09232
}

Semantic roles & 50–950 ramp

primary
#4046BF
secondary
#CAC791
accent
#D34ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4046BF

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

Preview Lab → · Contrast checker → · Palette generator →

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