#4047A2#4047A2

#4047A2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.5% C 0.145 H 275.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#4047A2
RGBrgb(64, 71, 162)
HSLhsl(236, 43%, 44%)
HSVhsv(236, 60%, 64%)
CMYKcmyk(60.5%, 56.2%, 0%, 36.5%)
CIE-LABlab(34.40, 25.56, -50.34)
CIE-LCHlch(34.40, 56.46, 296.92°)
OKLaboklab(44.46% 0.0139 -0.1444)
OKLCHoklch(44.46% 0.145 275.5)
XYZxyz(10.8871, 8.2043, 35.1853)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047A2 #A29B40
analogous
#4078A2 #4047A2 #6A40A2
triadic
#4047A2 #A24047 #47A240
tetradic
#4047A2 #A24078 #A29B40 #40A26A
square
#4047A2 #A24078 #A29B40 #40A26A
split-complementary
#4047A2 #A26A40 #78A240
monochromatic
#1D214A #2F3476 #4047A2 #5F66C0 #8B90D1

Accessibility & contrast

On white

7.95
#4047A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4047A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047A2
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047A2#FFFFFF#000000##FFFFFF
##4047A21.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4047a2;
/* rgb */ color: rgb(64, 71, 162);
/* oklch */ color: oklch(44.5% 0.145 275.5);
Tailwind
colors: {
  custom: {
    50: '#7e7abe',
    500: '#4047a2',
    950: '#000000',
  },
}
SCSS
$custom: #4047a2;
$custom-light: #7e7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4047a2",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 235.714,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44459,
    "c": 0.14509,
    "h": 275.5
  },
  "luminance": 0.08205
}

Semantic roles & 50–950 ramp

primary
#4047A2
secondary
#BCB882
accent
#CA55D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #4047A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4047A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva