#4046C0#4046C0

#4046C0 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.8% C 0.187 H 274.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4046C0
RGBrgb(64, 70, 192)
HSLhsl(237, 50%, 50%)
HSVhsv(237, 67%, 75%)
CMYKcmyk(66.7%, 63.5%, 0%, 24.7%)
CIE-LABlab(36.51, 36.57, -64.71)
CIE-LCHlch(36.51, 74.33, 299.47°)
OKLaboklab(46.75% 0.0142 -0.1867)
OKLCHoklch(46.75% 0.187 274.4)
XYZxyz(13.8158, 9.2748, 50.9211)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046C0 #C0BA40
analogous
#4086C0 #4046C0 #7A40C0
triadic
#4046C0 #C04046 #46C040
tetradic
#4046C0 #C04086 #C0BA40 #40C07A
square
#4046C0 #C04086 #C0BA40 #40C07A
split-complementary
#4046C0 #C07A40 #86C040
monochromatic
#212464 #303592 #4046C0 #6E73CF #9C9FDE

Accessibility & contrast

On white

7.36
#4046C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4046C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046C0
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046C0#FFFFFF#000000##FFFFFF
##4046C01.007.362.867.36
#FFFFFF7.361.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4046c0;
/* rgb */ color: rgb(64, 70, 192);
/* oklch */ color: oklch(46.8% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#8479d4',
    500: '#4046c0',
    950: '#000000',
  },
}
SCSS
$custom: #4046c0;
$custom-light: #8479d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4046c0",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 192
  },
  "hsl": {
    "h": 237.188,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.1872,
    "h": 274.4
  },
  "luminance": 0.09276
}

Semantic roles & 50–950 ramp

primary
#4046C0
secondary
#CBC891
accent
#D34EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4046C0

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

Preview Lab → · Contrast checker → · Palette generator →

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