#4034B2#4034B2

#4034B2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.6% C 0.190 H 278.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#4034B2
RGBrgb(64, 52, 178)
HSLhsl(246, 55%, 45%)
HSVhsv(246, 71%, 70%)
CMYKcmyk(64%, 70.8%, 0%, 30.2%)
CIE-LABlab(31.25, 42.73, -65.05)
CIE-LCHlch(31.25, 77.83, 303.30°)
OKLaboklab(42.57% 0.0293 -0.1877)
OKLCHoklch(42.57% 0.19 278.9)
XYZxyz(11.3757, 6.7594, 42.8161)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034B2 #A6B234
analogous
#3467B2 #4034B2 #7F34B2
triadic
#4034B2 #B24034 #34B240
tetradic
#4034B2 #B23467 #A6B234 #34B27F
square
#4034B2 #B23467 #A6B234 #34B27F
split-complementary
#4034B2 #B27F34 #67B234
monochromatic
#1E1853 #2F2683 #4034B2 #6156CE #8D85DB

Accessibility & contrast

On white

8.93
#4034B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4034B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034B2
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034B2#FFFFFF#000000##FFFFFF
##4034B21.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4034b2;
/* rgb */ color: rgb(64, 52, 178);
/* oklch */ color: oklch(42.6% 0.190 278.9);
Tailwind
colors: {
  custom: {
    50: '#836dca',
    500: '#4034b2',
    950: '#000000',
  },
}
SCSS
$custom: #4034b2;
$custom-light: #836dca;
$custom-dark: #000000;
JSON
{
  "hex": "#4034b2",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 245.714,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.18997,
    "h": 278.9
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#4034B2
secondary
#BEC57D
accent
#DE4AD0
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4034B2

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

Preview Lab → · Contrast checker → · Palette generator →

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