#4038AB#4038AB

#4038AB is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.176 H 278.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4038AB
RGBrgb(64, 56, 171)
HSLhsl(244, 51%, 45%)
HSVhsv(244, 67%, 67%)
CMYKcmyk(62.6%, 67.3%, 0%, 32.9%)
CIE-LABlab(31.48, 38.09, -60.50)
CIE-LCHlch(31.48, 71.49, 302.19°)
OKLaboklab(42.53% 0.0273 -0.1744)
OKLCHoklch(42.53% 0.176 278.9)
XYZxyz(10.8769, 6.8578, 39.2707)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AB #A3AB38
analogous
#386AAB #4038AB #7A38AB
triadic
#4038AB #AB4038 #38AB40
tetradic
#4038AB #AB386A #A3AB38 #38AB7A
square
#4038AB #AB386A #A3AB38 #38AB7A
split-complementary
#4038AB #AB7A38 #6AAB38
monochromatic
#1D1A4F #2F297D #4038AB #6058C8 #8C86D7

Accessibility & contrast

On white

8.85
#4038AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4038AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4038AB#FFFFFF#000000##FFFFFF
##4038AB1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4038ab;
/* rgb */ color: rgb(64, 56, 171);
/* oklch */ color: oklch(42.5% 0.176 278.9);
Tailwind
colors: {
  custom: {
    50: '#816fc5',
    500: '#4038ab',
    950: '#000000',
  },
}
SCSS
$custom: #4038ab;
$custom-light: #816fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4038ab",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 244.174,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42534,
    "c": 0.17649,
    "h": 278.9
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#4038AB
secondary
#BDC17D
accent
#DA4ED0
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4038AB

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

Preview Lab → · Contrast checker → · Palette generator →

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