#4035B8#4035B8

#4035B8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.3% C 0.196 H 278.1°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#4035B8
RGBrgb(64, 53, 184)
HSLhsl(245, 55%, 46%)
HSVhsv(245, 71%, 72%)
CMYKcmyk(65.2%, 71.2%, 0%, 27.8%)
CIE-LABlab(32.02, 44.09, -67.35)
CIE-LCHlch(32.02, 80.50, 303.21°)
OKLaboklab(43.29% 0.0276 -0.1944)
OKLCHoklch(43.29% 0.196 278.1)
XYZxyz(12.0364, 7.0959, 46.0735)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4035B8 #ADB835
analogous
#356CB8 #4035B8 #8235B8
triadic
#4035B8 #B84035 #35B840
tetradic
#4035B8 #B8356C #ADB835 #35B882
square
#4035B8 #B8356C #ADB835 #35B882
split-complementary
#4035B8 #B88235 #6CB835
monochromatic
#1F1A59 #2F2788 #4035B8 #645BD0 #918ADD

Accessibility & contrast

On white

8.68
#4035B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4035B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4035B8
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4035B8#FFFFFF#000000##FFFFFF
##4035B81.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4035b8;
/* rgb */ color: rgb(64, 53, 184);
/* oklch */ color: oklch(43.3% 0.196 278.1);
Tailwind
colors: {
  custom: {
    50: '#846ece',
    500: '#4035b8',
    950: '#000000',
  },
}
SCSS
$custom: #4035b8;
$custom-light: #846ece;
$custom-dark: #000000;
JSON
{
  "hex": "#4035b8",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 245.038,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43288,
    "c": 0.19636,
    "h": 278.1
  },
  "luminance": 0.07097
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4035B8

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

Preview Lab → · Contrast checker → · Palette generator →

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