#4038B6#4038B6

#4038B6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.191 H 277.8°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4038B6
RGBrgb(64, 56, 182)
HSLhsl(244, 53%, 47%)
HSVhsv(244, 69%, 71%)
CMYKcmyk(64.8%, 69.2%, 0%, 28.6%)
CIE-LABlab(32.47, 41.70, -65.44)
CIE-LCHlch(32.47, 77.59, 302.51°)
OKLaboklab(43.55% 0.0258 -0.1888)
OKLCHoklch(43.55% 0.191 277.8)
XYZxyz(11.9693, 7.2947, 45.0242)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038B6 #AEB638
analogous
#386FB6 #4038B6 #7F38B6
triadic
#4038B6 #B64038 #38B640
tetradic
#4038B6 #B6386F #AEB638 #38B67F
square
#4038B6 #B6386F #AEB638 #38B67F
split-complementary
#4038B6 #B67F38 #6FB638
monochromatic
#1F1B58 #302A87 #4038B6 #655ECD #928DDC

Accessibility & contrast

On white

8.54
#4038B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4038B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038B6
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038B6#FFFFFF#000000##FFFFFF
##4038B61.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4038b6;
/* rgb */ color: rgb(64, 56, 182);
/* oklch */ color: oklch(43.5% 0.191 277.8);
Tailwind
colors: {
  custom: {
    50: '#8370cd',
    500: '#4038b6',
    950: '#000000',
  },
}
SCSS
$custom: #4038b6;
$custom-light: #8370cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4038b6",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 243.81,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4355,
    "c": 0.19057,
    "h": 277.8
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#4038B6
secondary
#C2C684
accent
#DC4BD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4038B6

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

Preview Lab → · Contrast checker → · Palette generator →

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