#4034A5#4034A5

#4034A5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.173 H 280.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4034A5
RGBrgb(64, 52, 165)
HSLhsl(246, 52%, 43%)
HSVhsv(246, 68%, 65%)
CMYKcmyk(61.2%, 68.5%, 0%, 35.3%)
CIE-LABlab(30.06, 38.52, -59.21)
CIE-LCHlch(30.06, 70.64, 303.05°)
OKLaboklab(41.35% 0.0314 -0.1706)
OKLCHoklch(41.35% 0.173 280.4)
XYZxyz(10.1317, 6.2619, 36.2648)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034A5 #99A534
analogous
#3460A5 #4034A5 #7934A5
triadic
#4034A5 #A54034 #34A540
tetradic
#4034A5 #A53460 #99A534 #34A579
square
#4034A5 #A53460 #99A534 #34A579
split-complementary
#4034A5 #A57934 #60A534
monochromatic
#1C1748 #2E2576 #4034A5 #5C4FC7 #877DD6

Accessibility & contrast

On white

9.32
#4034A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4034A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034A5
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034A5#FFFFFF#000000##FFFFFF
##4034A51.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4034a5;
/* rgb */ color: rgb(64, 52, 165);
/* oklch */ color: oklch(41.3% 0.173 280.4);
Tailwind
colors: {
  custom: {
    50: '#806dc1',
    500: '#4034a5',
    950: '#000000',
  },
}
SCSS
$custom: #4034a5;
$custom-light: #806dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4034a5",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 246.372,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41348,
    "c": 0.17346,
    "h": 280.4
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#4034A5
secondary
#B7BF76
accent
#DC4CCC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4034A5

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

Preview Lab → · Contrast checker → · Palette generator →

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