#4038BE#4038BE

#4038BE is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.3% C 0.201 H 277.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#4038BE
RGBrgb(64, 56, 190)
HSLhsl(244, 54%, 48%)
HSVhsv(244, 71%, 75%)
CMYKcmyk(66.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(33.21, 44.30, -68.94)
CIE-LCHlch(33.21, 81.95, 302.73°)
OKLaboklab(44.31% 0.0245 -0.1991)
OKLCHoklch(44.31% 0.201 277)
XYZxyz(12.8198, 7.6349, 49.5033)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038BE #B6BE38
analogous
#3873BE #4038BE #8338BE
triadic
#4038BE #BE4038 #38BE40
tetradic
#4038BE #BE3873 #B6BE38 #38BE83
square
#4038BE #BE3873 #B6BE38 #38BE83
split-complementary
#4038BE #BE8338 #73BE38
monochromatic
#201C5F #302A8F #4038BE #6962D1 #9692DF

Accessibility & contrast

On white

8.31
#4038BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4038BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4038BE#FFFFFF#000000##FFFFFF
##4038BE1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4038be;
/* rgb */ color: rgb(64, 56, 190);
/* oklch */ color: oklch(44.3% 0.201 277.0);
Tailwind
colors: {
  custom: {
    50: '#8570d3',
    500: '#4038be',
    950: '#000000',
  },
}
SCSS
$custom: #4038be;
$custom-light: #8570d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4038be",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 243.582,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44308,
    "c": 0.20058,
    "h": 277
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#4038BE
secondary
#C6CA88
accent
#DE4AD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4038BE

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

Preview Lab → · Contrast checker → · Palette generator →

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