#4046B2#4046B2

#4046B2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.169 H 275.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4046B2
RGBrgb(64, 70, 178)
HSLhsl(237, 47%, 47%)
HSVhsv(237, 64%, 70%)
CMYKcmyk(64%, 60.7%, 0%, 30.2%)
CIE-LABlab(35.37, 31.75, -58.32)
CIE-LCHlch(35.37, 66.41, 298.56°)
OKLaboklab(45.56% 0.0149 -0.1679)
OKLCHoklch(45.56% 0.169 275.1)
XYZxyz(12.3378, 8.6836, 43.1368)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046B2 #B2AC40
analogous
#407FB2 #4046B2 #7340B2
triadic
#4046B2 #B24046 #46B240
tetradic
#4046B2 #B2407F #B2AC40 #40B273
square
#4046B2 #B2407F #B2AC40 #40B273
split-complementary
#4046B2 #B27340 #7FB240
monochromatic
#202358 #303485 #4046B2 #676CC8 #9498D8

Accessibility & contrast

On white

7.67
#4046B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4046B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046B2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046B2#FFFFFF#000000##FFFFFF
##4046B21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4046b2;
/* rgb */ color: rgb(64, 70, 178);
/* oklch */ color: oklch(45.6% 0.169 275.1);
Tailwind
colors: {
  custom: {
    50: '#8279ca',
    500: '#4046b2',
    950: '#000000',
  },
}
SCSS
$custom: #4046b2;
$custom-light: #8279ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4046b2",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 236.842,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45557,
    "c": 0.16857,
    "h": 275.1
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#4046B2
secondary
#C4C18A
accent
#D051D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4046B2

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

Preview Lab → · Contrast checker → · Palette generator →

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