#4035B2#4035B2

#4035B2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.189 H 278.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#4035B2
RGBrgb(64, 53, 178)
HSLhsl(245, 54%, 45%)
HSVhsv(245, 70%, 70%)
CMYKcmyk(64%, 70.2%, 0%, 30.2%)
CIE-LABlab(31.46, 42.15, -64.71)
CIE-LCHlch(31.46, 77.23, 303.08°)
OKLaboklab(42.72% 0.0286 -0.1867)
OKLCHoklch(42.72% 0.189 278.7)
XYZxyz(11.4208, 6.8496, 42.8311)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4035B2 #A7B235
analogous
#3568B2 #4035B2 #7E35B2
triadic
#4035B2 #B24035 #35B240
tetradic
#4035B2 #B23568 #A7B235 #35B27E
square
#4035B2 #B23568 #A7B235 #35B27E
split-complementary
#4035B2 #B27E35 #68B235
monochromatic
#1E1954 #2F2783 #4035B2 #6257CD #8E86DB

Accessibility & contrast

On white

8.86
#4035B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4035B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4035B2
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4035B2#FFFFFF#000000##FFFFFF
##4035B21.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4035b2;
/* rgb */ color: rgb(64, 53, 178);
/* oklch */ color: oklch(42.7% 0.189 278.7);
Tailwind
colors: {
  custom: {
    50: '#836eca',
    500: '#4035b2',
    950: '#000000',
  },
}
SCSS
$custom: #4035b2;
$custom-light: #836eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4035b2",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 245.28,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42715,
    "c": 0.18887,
    "h": 278.7
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#4035B2
secondary
#BFC57E
accent
#DD4AD1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4035B2

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

Preview Lab → · Contrast checker → · Palette generator →

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