#4038B2#4038B2

#4038B2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.2% C 0.185 H 278.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#4038B2
RGBrgb(64, 56, 178)
HSLhsl(244, 52%, 46%)
HSVhsv(244, 69%, 70%)
CMYKcmyk(64%, 68.5%, 0%, 30.2%)
CIE-LABlab(32.11, 40.39, -63.66)
CIE-LCHlch(32.11, 75.39, 302.40°)
OKLaboklab(43.18% 0.0264 -0.1836)
OKLCHoklch(43.18% 0.186 278.2)
XYZxyz(11.5618, 7.1318, 42.8781)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038B2 #AAB238
analogous
#386DB2 #4038B2 #7D38B2
triadic
#4038B2 #B24038 #38B240
tetradic
#4038B2 #B2386D #AAB238 #38B27D
square
#4038B2 #B2386D #AAB238 #38B27D
split-complementary
#4038B2 #B27D38 #6DB238
monochromatic
#1F1B55 #2F2983 #4038B2 #635CCC #8F8ADA

Accessibility & contrast

On white

8.65
#4038B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4038B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4038B2#FFFFFF#000000##FFFFFF
##4038B21.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4038b2;
/* rgb */ color: rgb(64, 56, 178);
/* oklch */ color: oklch(43.2% 0.185 278.2);
Tailwind
colors: {
  custom: {
    50: '#8370ca',
    500: '#4038b2',
    950: '#000000',
  },
}
SCSS
$custom: #4038b2;
$custom-light: #8370ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4038b2",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 243.934,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43177,
    "c": 0.1855,
    "h": 278.2
  },
  "luminance": 0.07133
}

Semantic roles & 50–950 ramp

primary
#4038B2
secondary
#C0C581
accent
#DC4CD2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4038B2

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

Preview Lab → · Contrast checker → · Palette generator →

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