#4046AA#4046AA

#4046AA is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.9% C 0.158 H 275.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4046AA
RGBrgb(64, 70, 170)
HSLhsl(237, 45%, 46%)
HSVhsv(237, 62%, 67%)
CMYKcmyk(62.4%, 58.8%, 0%, 33.3%)
CIE-LABlab(34.75, 28.98, -54.58)
CIE-LCHlch(34.75, 61.80, 297.97°)
OKLaboklab(44.9% 0.015 -0.1569)
OKLCHoklch(44.9% 0.158 275.5)
XYZxyz(11.5578, 8.3717, 39.0292)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046AA #AAA440
analogous
#407BAA #4046AA #6F40AA
triadic
#4046AA #AA4046 #46AA40
tetradic
#4046AA #AA407B #AAA440 #40AA6F
square
#4046AA #AA407B #AAA440 #40AA6F
split-complementary
#4046AA #AA6F40 #7BAA40
monochromatic
#1F2151 #2F347E #4046AA #6368C4 #8F93D5

Accessibility & contrast

On white

7.85
#4046AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4046AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4046AA#FFFFFF#000000##FFFFFF
##4046AA1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4046aa;
/* rgb */ color: rgb(64, 70, 170);
/* oklch */ color: oklch(44.9% 0.158 275.5);
Tailwind
colors: {
  custom: {
    50: '#8079c4',
    500: '#4046aa',
    950: '#000000',
  },
}
SCSS
$custom: #4046aa;
$custom-light: #8079c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4046aa",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 236.604,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44901,
    "c": 0.15761,
    "h": 275.5
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#4046AA
secondary
#C0BD86
accent
#CE53D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4046AA

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

Preview Lab → · Contrast checker → · Palette generator →

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