#4046BA#4046BA

#4046BA is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.2% C 0.179 H 274.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#4046BA
RGBrgb(64, 70, 186)
HSLhsl(237, 49%, 49%)
HSVhsv(237, 66%, 73%)
CMYKcmyk(65.6%, 62.4%, 0%, 27.1%)
CIE-LABlab(36.01, 34.51, -62.00)
CIE-LCHlch(36.01, 70.96, 299.10°)
OKLaboklab(46.23% 0.0145 -0.1787)
OKLCHoklch(46.23% 0.179 274.7)
XYZxyz(13.1645, 9.0143, 47.4910)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046BA #BAB440
analogous
#4083BA #4046BA #7740BA
triadic
#4046BA #BA4046 #46BA40
tetradic
#4046BA #BA4083 #BAB440 #40BA77
square
#4046BA #BA4083 #BAB440 #40BA77
split-complementary
#4046BA #BA7740 #83BA40
monochromatic
#21245F #30358C #4046BA #6B70CC #999CDC

Accessibility & contrast

On white

7.49
#4046BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4046BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046BA
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046BA#FFFFFF#000000##FFFFFF
##4046BA1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4046ba;
/* rgb */ color: rgb(64, 70, 186);
/* oklch */ color: oklch(46.2% 0.179 274.7);
Tailwind
colors: {
  custom: {
    50: '#8379d0',
    500: '#4046ba',
    950: '#000000',
  },
}
SCSS
$custom: #4046ba;
$custom-light: #8379d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4046ba",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 237.049,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46233,
    "c": 0.1793,
    "h": 274.7
  },
  "luminance": 0.09015
}

Semantic roles & 50–950 ramp

primary
#4046BA
secondary
#C8C58E
accent
#D24FD8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #4046BA

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

Preview Lab → · Contrast checker → · Palette generator →

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