#4046AF#4046AF

#4046AF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.3% C 0.164 H 275.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4046AF
RGBrgb(64, 70, 175)
HSLhsl(237, 46%, 47%)
HSVhsv(237, 63%, 69%)
CMYKcmyk(63.4%, 60%, 0%, 31.4%)
CIE-LABlab(35.13, 30.71, -56.93)
CIE-LCHlch(35.13, 64.69, 298.35°)
OKLaboklab(45.31% 0.0149 -0.1638)
OKLCHoklch(45.31% 0.164 275.2)
XYZxyz(12.0398, 8.5645, 41.5678)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046AF #AFA940
analogous
#407EAF #4046AF #7240AF
triadic
#4046AF #AF4046 #46AF40
tetradic
#4046AF #AF407E #AFA940 #40AF72
square
#4046AF #AF407E #AFA940 #40AF72
split-complementary
#4046AF #AF7240 #7EAF40
monochromatic
#1F2255 #303482 #4046AF #656BC7 #9296D7

Accessibility & contrast

On white

7.74
#4046AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4046AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4046AF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046AF#FFFFFF#000000##FFFFFF
##4046AF1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4046af;
/* rgb */ color: rgb(64, 70, 175);
/* oklch */ color: oklch(45.3% 0.164 275.2);
Tailwind
colors: {
  custom: {
    50: '#8179c8',
    500: '#4046af',
    950: '#000000',
  },
}
SCSS
$custom: #4046af;
$custom-light: #8179c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4046af",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 236.757,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.16449,
    "h": 275.2
  },
  "luminance": 0.08565
}

Semantic roles & 50–950 ramp

primary
#4046AF
secondary
#C3BF88
accent
#CF52D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4046AF

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

Preview Lab → · Contrast checker → · Palette generator →

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