#4046C5#4046C5

#4046C5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.2% C 0.194 H 274.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#4046C5
RGBrgb(64, 70, 197)
HSLhsl(237, 53%, 51%)
HSVhsv(237, 68%, 77%)
CMYKcmyk(67.5%, 64.5%, 0%, 22.7%)
CIE-LABlab(36.93, 38.27, -66.94)
CIE-LCHlch(36.93, 77.11, 299.76°)
OKLaboklab(47.19% 0.0139 -0.1932)
OKLCHoklch(47.19% 0.194 274.1)
XYZxyz(14.3792, 9.5002, 53.8884)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046C5 #C5BF40
analogous
#4088C5 #4046C5 #7C40C5
triadic
#4046C5 #C54046 #46C540
tetradic
#4046C5 #C54088 #C5BF40 #40C57C
square
#4046C5 #C54088 #C5BF40 #40C57C
split-complementary
#4046C5 #C57C40 #88C540
monochromatic
#20246A #2F3399 #4046C5 #6F73D3 #9EA1E2

Accessibility & contrast

On white

7.24
#4046C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4046C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046C5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046C5#FFFFFF#000000##FFFFFF
##4046C51.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4046c5;
/* rgb */ color: rgb(64, 70, 197);
/* oklch */ color: oklch(47.2% 0.194 274.1);
Tailwind
colors: {
  custom: {
    50: '#857ad8',
    500: '#4046c5',
    950: '#000000',
  },
}
SCSS
$custom: #4046c5;
$custom-light: #857ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#4046c5",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 197
  },
  "hsl": {
    "h": 237.293,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4719,
    "c": 0.1937,
    "h": 274.1
  },
  "luminance": 0.09502
}

Semantic roles & 50–950 ramp

primary
#4046C5
secondary
#CECB93
accent
#D64BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #4046C5

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

Preview Lab → · Contrast checker → · Palette generator →

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