#4038AC#4038AC

#4038AC is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.178 H 278.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#4038AC
RGBrgb(64, 56, 172)
HSLhsl(244, 51%, 45%)
HSVhsv(244, 67%, 67%)
CMYKcmyk(62.8%, 67.4%, 0%, 32.5%)
CIE-LABlab(31.57, 38.42, -60.95)
CIE-LCHlch(31.57, 72.05, 302.22°)
OKLaboklab(42.63% 0.0272 -0.1757)
OKLCHoklch(42.63% 0.178 278.8)
XYZxyz(10.9725, 6.8960, 39.7746)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AC #A4AC38
analogous
#386AAC #4038AC #7A38AC
triadic
#4038AC #AC4038 #38AC40
tetradic
#4038AC #AC386A #A4AC38 #38AC7A
square
#4038AC #AC386A #A4AC38 #38AC7A
split-complementary
#4038AC #AC7A38 #6AAC38
monochromatic
#1E1A50 #2F297E #4038AC #6058C9 #8C87D8

Accessibility & contrast

On white

8.83
#4038AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4038AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4038AC#FFFFFF#000000##FFFFFF
##4038AC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4038ac;
/* rgb */ color: rgb(64, 56, 172);
/* oklch */ color: oklch(42.6% 0.178 278.8);
Tailwind
colors: {
  custom: {
    50: '#816fc6',
    500: '#4038ac',
    950: '#000000',
  },
}
SCSS
$custom: #4038ac;
$custom-light: #816fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#4038ac",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 244.138,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42625,
    "c": 0.17779,
    "h": 278.8
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#4038AC
secondary
#BDC27E
accent
#DA4DD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4038AC

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

Preview Lab → · Contrast checker → · Palette generator →

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