#4046C8#4046C8

#4046C8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.5% C 0.198 H 274.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4046C8
RGBrgb(64, 70, 200)
HSLhsl(237, 55%, 52%)
HSVhsv(237, 68%, 78%)
CMYKcmyk(68%, 65%, 0%, 21.6%)
CIE-LABlab(37.19, 39.30, -68.27)
CIE-LCHlch(37.19, 78.77, 299.92°)
OKLaboklab(47.46% 0.0136 -0.1971)
OKLCHoklch(47.46% 0.198 274)
XYZxyz(14.7264, 9.6391, 55.7168)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046C8 #C8C240
analogous
#408AC8 #4046C8 #7E40C8
triadic
#4046C8 #C84046 #46C840
tetradic
#4046C8 #C8408A #C8C240 #40C87E
square
#4046C8 #C8408A #C8C240 #40C87E
split-complementary
#4046C8 #C87E40 #8AC840
monochromatic
#20236E #2D329D #4046C8 #7074D6 #9FA2E3

Accessibility & contrast

On white

7.17
#4046C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4046C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046C8
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046C8#FFFFFF#000000##FFFFFF
##4046C81.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4046c8;
/* rgb */ color: rgb(64, 70, 200);
/* oklch */ color: oklch(47.5% 0.198 274.0);
Tailwind
colors: {
  custom: {
    50: '#867ada',
    500: '#4046c8',
    950: '#000000',
  },
}
SCSS
$custom: #4046c8;
$custom-light: #867ada;
$custom-dark: #000000;
JSON
{
  "hex": "#4046c8",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 237.353,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47456,
    "c": 0.19756,
    "h": 274
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#4046C8
secondary
#D0CD94
accent
#D849DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4046C8

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

Preview Lab → · Contrast checker → · Palette generator →

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