#4034B5#4034B5

#4034B5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.9% C 0.194 H 278.5°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4034B5
RGBrgb(64, 52, 181)
HSLhsl(246, 55%, 46%)
HSVhsv(246, 71%, 71%)
CMYKcmyk(64.6%, 71.3%, 0%, 29%)
CIE-LABlab(31.53, 43.69, -66.38)
CIE-LCHlch(31.53, 79.47, 303.36°)
OKLaboklab(42.85% 0.0288 -0.1916)
OKLCHoklch(42.85% 0.194 278.5)
XYZxyz(11.6802, 6.8812, 44.4198)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034B5 #A9B534
analogous
#3469B5 #4034B5 #8034B5
triadic
#4034B5 #B54034 #34B540
tetradic
#4034B5 #B53469 #A9B534 #34B580
square
#4034B5 #B53469 #A9B534 #34B580
split-complementary
#4034B5 #B58034 #69B534
monochromatic
#1E1956 #2F2685 #4034B5 #6257CF #8F87DC

Accessibility & contrast

On white

8.84
#4034B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4034B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034B5
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034B5#FFFFFF#000000##FFFFFF
##4034B51.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4034b5;
/* rgb */ color: rgb(64, 52, 181);
/* oklch */ color: oklch(42.9% 0.194 278.5);
Tailwind
colors: {
  custom: {
    50: '#846dcc',
    500: '#4034b5',
    950: '#000000',
  },
}
SCSS
$custom: #4034b5;
$custom-light: #846dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4034b5",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 245.581,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42852,
    "c": 0.19372,
    "h": 278.5
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#4034B5
secondary
#C0C67F
accent
#DF49D1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4034B5

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

Preview Lab → · Contrast checker → · Palette generator →

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