#4034A2#4034A2

#4034A2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.170 H 280.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4034A2
RGBrgb(64, 52, 162)
HSLhsl(247, 51%, 42%)
HSVhsv(247, 68%, 64%)
CMYKcmyk(60.5%, 67.9%, 0%, 36.5%)
CIE-LABlab(29.80, 37.55, -57.84)
CIE-LCHlch(29.80, 68.96, 302.99°)
OKLaboklab(41.07% 0.0318 -0.1666)
OKLCHoklch(41.07% 0.17 280.8)
XYZxyz(9.8619, 6.1539, 34.8436)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034A2 #96A234
analogous
#345FA2 #4034A2 #7734A2
triadic
#4034A2 #A24034 #34A240
tetradic
#4034A2 #A2345F #96A234 #34A277
square
#4034A2 #A2345F #96A234 #34A277
split-complementary
#4034A2 #A27734 #5FA234
monochromatic
#1B1645 #2E2574 #4034A2 #5A4DC6 #857CD5

Accessibility & contrast

On white

9.41
#4034A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4034A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034A2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034A2#FFFFFF#000000##FFFFFF
##4034A21.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4034a2;
/* rgb */ color: rgb(64, 52, 162);
/* oklch */ color: oklch(41.1% 0.170 280.8);
Tailwind
colors: {
  custom: {
    50: '#806cbe',
    500: '#4034a2',
    950: '#000000',
  },
}
SCSS
$custom: #4034a2;
$custom-light: #806cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4034a2",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 246.545,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41074,
    "c": 0.16958,
    "h": 280.8
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#4034A2
secondary
#B6BE74
accent
#DB4DCB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4034A2

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

Preview Lab → · Contrast checker → · Palette generator →

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