#4038AD#4038AD

#4038AD is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.179 H 278.7°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#4038AD
RGBrgb(64, 56, 173)
HSLhsl(244, 51%, 45%)
HSVhsv(244, 68%, 68%)
CMYKcmyk(63%, 67.6%, 0%, 32.2%)
CIE-LABlab(31.66, 38.75, -61.41)
CIE-LCHlch(31.66, 72.61, 302.25°)
OKLaboklab(42.72% 0.027 -0.177)
OKLCHoklch(42.72% 0.179 278.7)
XYZxyz(11.0689, 6.9346, 40.2823)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AD #A5AD38
analogous
#386AAD #4038AD #7B38AD
triadic
#4038AD #AD4038 #38AD40
tetradic
#4038AD #AD386A #A5AD38 #38AD7B
square
#4038AD #AD386A #A5AD38 #38AD7B
split-complementary
#4038AD #AD7B38 #6AAD38
monochromatic
#1E1A51 #2F297F #4038AD #6159C9 #8D87D8

Accessibility & contrast

On white

8.80
#4038AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4038AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4038AD#FFFFFF#000000##FFFFFF
##4038AD1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4038ad;
/* rgb */ color: rgb(64, 56, 173);
/* oklch */ color: oklch(42.7% 0.179 278.7);
Tailwind
colors: {
  custom: {
    50: '#826fc6',
    500: '#4038ad',
    950: '#000000',
  },
}
SCSS
$custom: #4038ad;
$custom-light: #826fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4038ad",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 244.103,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.17908,
    "h": 278.7
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

primary
#4038AD
secondary
#BEC27F
accent
#DB4DD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4038AD

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

Preview Lab → · Contrast checker → · Palette generator →

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