#4037AC#4037AC

#4037AC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.179 H 279.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4037AC
RGBrgb(64, 55, 172)
HSLhsl(245, 52%, 45%)
HSVhsv(245, 68%, 67%)
CMYKcmyk(62.8%, 68%, 0%, 32.5%)
CIE-LABlab(31.35, 39.02, -61.32)
CIE-LCHlch(31.35, 72.68, 302.47°)
OKLaboklab(42.47% 0.028 -0.1768)
OKLCHoklch(42.47% 0.179 279)
XYZxyz(10.9246, 6.8001, 39.7586)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4037AC #A3AC37
analogous
#3769AC #4037AC #7A37AC
triadic
#4037AC #AC4037 #37AC40
tetradic
#4037AC #AC3769 #A3AC37 #37AC7A
square
#4037AC #AC3769 #A3AC37 #37AC7A
split-complementary
#4037AC #AC7A37 #69AC37
monochromatic
#1D194F #2F287E #4037AC #6057C9 #8C85D8

Accessibility & contrast

On white

8.90
#4037AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4037AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4037AC
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4037AC#FFFFFF#000000##FFFFFF
##4037AC1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4037ac;
/* rgb */ color: rgb(64, 55, 172);
/* oklch */ color: oklch(42.5% 0.179 279.0);
Tailwind
colors: {
  custom: {
    50: '#826fc6',
    500: '#4037ac',
    950: '#000000',
  },
}
SCSS
$custom: #4037ac;
$custom-light: #826fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4037ac",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 244.615,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42465,
    "c": 0.17897,
    "h": 279
  },
  "luminance": 0.06801
}

Semantic roles & 50–950 ramp

primary
#4037AC
secondary
#BDC27D
accent
#DB4DD0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4037AC

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

Preview Lab → · Contrast checker → · Palette generator →

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