#4035A2#4035A2

#4035A2 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.2% C 0.168 H 280.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4035A2
RGBrgb(64, 53, 162)
HSLhsl(246, 51%, 42%)
HSVhsv(246, 67%, 64%)
CMYKcmyk(60.5%, 67.3%, 0%, 36.5%)
CIE-LABlab(30.02, 36.95, -57.47)
CIE-LCHlch(30.02, 68.32, 302.73°)
OKLaboklab(41.24% 0.031 -0.1655)
OKLCHoklch(41.24% 0.168 280.6)
XYZxyz(9.9070, 6.2441, 34.8586)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4035A2 #97A235
analogous
#3561A2 #4035A2 #7735A2
triadic
#4035A2 #A24035 #35A240
tetradic
#4035A2 #A23561 #97A235 #35A277
square
#4035A2 #A23561 #97A235 #35A277
split-complementary
#4035A2 #A27735 #61A235
monochromatic
#1C1746 #2E2674 #4035A2 #5B4FC5 #867DD4

Accessibility & contrast

On white

9.34
#4035A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4035A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4035A2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4035A2#FFFFFF#000000##FFFFFF
##4035A21.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4035a2;
/* rgb */ color: rgb(64, 53, 162);
/* oklch */ color: oklch(41.2% 0.168 280.6);
Tailwind
colors: {
  custom: {
    50: '#806dbe',
    500: '#4035a2',
    950: '#000000',
  },
}
SCSS
$custom: #4035a2;
$custom-light: #806dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4035a2",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 246.055,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41235,
    "c": 0.16837,
    "h": 280.6
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#4035A2
secondary
#B6BD75
accent
#DA4ECC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4035A2

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

Preview Lab → · Contrast checker → · Palette generator →

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