#4046AC#4046AC

#4046AC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.160 H 275.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4046AC
RGBrgb(64, 70, 172)
HSLhsl(237, 46%, 46%)
HSVhsv(237, 63%, 67%)
CMYKcmyk(62.8%, 59.3%, 0%, 32.5%)
CIE-LABlab(34.90, 29.68, -55.52)
CIE-LCHlch(34.90, 62.96, 298.12°)
OKLaboklab(45.06% 0.015 -0.1597)
OKLCHoklch(45.06% 0.16 275.4)
XYZxyz(11.7485, 8.4479, 40.0332)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046AC #ACA640
analogous
#407CAC #4046AC #7040AC
triadic
#4046AC #AC4046 #46AC40
tetradic
#4046AC #AC407C #ACA640 #40AC70
square
#4046AC #AC407C #ACA640 #40AC70
split-complementary
#4046AC #AC7040 #7CAC40
monochromatic
#1F2253 #2F347F #4046AC #6469C5 #9194D6

Accessibility & contrast

On white

7.81
#4046AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4046AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046AC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046AC#FFFFFF#000000##FFFFFF
##4046AC1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4046ac;
/* rgb */ color: rgb(64, 70, 172);
/* oklch */ color: oklch(45.1% 0.160 275.4);
Tailwind
colors: {
  custom: {
    50: '#8079c5',
    500: '#4046ac',
    950: '#000000',
  },
}
SCSS
$custom: #4046ac;
$custom-light: #8079c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4046ac",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 236.667,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45063,
    "c": 0.16038,
    "h": 275.4
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

primary
#4046AC
secondary
#C1BE87
accent
#CE52D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4046AC

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

Preview Lab → · Contrast checker → · Palette generator →

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