#4046C1#4046C1

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

Color values

HEX#4046C1
RGBrgb(64, 70, 193)
HSLhsl(237, 51%, 50%)
HSVhsv(237, 67%, 76%)
CMYKcmyk(66.8%, 63.7%, 0%, 24.3%)
CIE-LABlab(36.59, 36.91, -65.16)
CIE-LCHlch(36.59, 74.89, 299.53°)
OKLaboklab(46.84% 0.0141 -0.188)
OKLCHoklch(46.84% 0.189 274.3)
XYZxyz(13.9270, 9.3193, 51.5066)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046C1 #C1BB40
analogous
#4087C1 #4046C1 #7A40C1
triadic
#4046C1 #C14046 #46C140
tetradic
#4046C1 #C14087 #C1BB40 #40C17A
square
#4046C1 #C14087 #C1BB40 #40C17A
split-complementary
#4046C1 #C17A40 #87C140
monochromatic
#212466 #303594 #4046C1 #6E73D0 #9CA0DF

Accessibility & contrast

On white

7.33
#4046C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4046C1
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046C1#FFFFFF#000000##FFFFFF
##4046C11.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4046c1;
/* rgb */ color: rgb(64, 70, 193);
/* oklch */ color: oklch(46.8% 0.189 274.3);
Tailwind
colors: {
  custom: {
    50: '#8579d5',
    500: '#4046c1',
    950: '#000000',
  },
}
SCSS
$custom: #4046c1;
$custom-light: #8579d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4046c1",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 193
  },
  "hsl": {
    "h": 237.209,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46838,
    "c": 0.18851,
    "h": 274.3
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#4046C1
secondary
#CBC892
accent
#D44DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4046C1

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

Preview Lab → · Contrast checker → · Palette generator →

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