#4034B8#4034B8

#4034B8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.1% C 0.197 H 278.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4034B8
RGBrgb(64, 52, 184)
HSLhsl(245, 56%, 46%)
HSVhsv(245, 72%, 72%)
CMYKcmyk(65.2%, 71.7%, 0%, 27.8%)
CIE-LABlab(31.82, 44.65, -67.69)
CIE-LCHlch(31.82, 81.09, 303.41°)
OKLaboklab(43.14% 0.0282 -0.1954)
OKLCHoklch(43.14% 0.197 278.2)
XYZxyz(11.9913, 7.0057, 46.0584)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034B8 #ACB834
analogous
#346AB8 #4034B8 #8234B8
triadic
#4034B8 #B84034 #34B840
tetradic
#4034B8 #B8346A #ACB834 #34B882
square
#4034B8 #B8346A #ACB834 #34B882
split-complementary
#4034B8 #B88234 #6AB834
monochromatic
#1F1959 #2F2788 #4034B8 #6459D0 #9189DE

Accessibility & contrast

On white

8.74
#4034B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4034B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034B8
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034B8#FFFFFF#000000##FFFFFF
##4034B81.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0045B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4034b8;
/* rgb */ color: rgb(64, 52, 184);
/* oklch */ color: oklch(43.1% 0.197 278.2);
Tailwind
colors: {
  custom: {
    50: '#846dce',
    500: '#4034b8',
    950: '#000000',
  },
}
SCSS
$custom: #4034b8;
$custom-light: #846dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4034b8",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 245.455,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43142,
    "c": 0.19743,
    "h": 278.2
  },
  "luminance": 0.07007
}

Semantic roles & 50–950 ramp

primary
#4034B8
secondary
#C1C880
accent
#DF49D2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4034B8

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

Preview Lab → · Contrast checker → · Palette generator →

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