#4038AA#4038AA

#4038AA is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.175 H 279.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4038AA
RGBrgb(64, 56, 170)
HSLhsl(244, 50%, 44%)
HSVhsv(244, 67%, 67%)
CMYKcmyk(62.4%, 67.1%, 0%, 33.3%)
CIE-LABlab(31.39, 37.76, -60.04)
CIE-LCHlch(31.39, 70.93, 302.16°)
OKLaboklab(42.44% 0.0274 -0.173)
OKLCHoklch(42.44% 0.175 279)
XYZxyz(10.7819, 6.8198, 38.7706)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AA #A2AA38
analogous
#3869AA #4038AA #7938AA
triadic
#4038AA #AA4038 #38AA40
tetradic
#4038AA #AA3869 #A2AA38 #38AA79
square
#4038AA #AA3869 #A2AA38 #38AA79
split-complementary
#4038AA #AA7938 #69AA38
monochromatic
#1D1A4E #2F297C #4038AA #5F57C8 #8B85D7

Accessibility & contrast

On white

8.88
#4038AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4038AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038AA
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038AA#FFFFFF#000000##FFFFFF
##4038AA1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4038aa;
/* rgb */ color: rgb(64, 56, 170);
/* oklch */ color: oklch(42.4% 0.175 279.0);
Tailwind
colors: {
  custom: {
    50: '#816fc4',
    500: '#4038aa',
    950: '#000000',
  },
}
SCSS
$custom: #4038aa;
$custom-light: #816fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4038aa",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 244.211,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42444,
    "c": 0.17519,
    "h": 279
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#4038AA
secondary
#BCC17D
accent
#DA4ED0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #4038AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4038AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva