#4037A2#4037A2

#4037A2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.166 H 280.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#4037A2
RGBrgb(64, 55, 162)
HSLhsl(245, 49%, 43%)
HSVhsv(245, 66%, 64%)
CMYKcmyk(60.5%, 66%, 0%, 36.5%)
CIE-LABlab(30.47, 35.73, -56.73)
CIE-LCHlch(30.47, 67.05, 302.20°)
OKLaboklab(41.56% 0.0292 -0.1633)
OKLCHoklch(41.56% 0.166 280.1)
XYZxyz(10.0001, 6.4303, 34.8896)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037A2 #99A237
analogous
#3763A2 #4037A2 #7637A2
triadic
#4037A2 #A24037 #37A240
tetradic
#4037A2 #A23763 #99A237 #37A276
square
#4037A2 #A23763 #99A237 #37A276
split-complementary
#4037A2 #A27637 #63A237
monochromatic
#1C1847 #2E2774 #4037A2 #5C52C4 #8780D4

Accessibility & contrast

On white

9.19
#4037A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4037A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037A2
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037A2#FFFFFF#000000##FFFFFF
##4037A21.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4037a2;
/* rgb */ color: rgb(64, 55, 162);
/* oklch */ color: oklch(41.6% 0.166 280.1);
Tailwind
colors: {
  custom: {
    50: '#806ebe',
    500: '#4037a2',
    950: '#000000',
  },
}
SCSS
$custom: #4037a2;
$custom-light: #806ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4037a2",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 245.047,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41563,
    "c": 0.16591,
    "h": 280.1
  },
  "luminance": 0.06431
}

Semantic roles & 50–950 ramp

primary
#4037A2
secondary
#B7BD78
accent
#D94FCD
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4037A2

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

Preview Lab → · Contrast checker → · Palette generator →

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