#4036B2#4036B2

#4036B2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.9% C 0.188 H 278.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4036B2
RGBrgb(64, 54, 178)
HSLhsl(245, 53%, 45%)
HSVhsv(245, 70%, 70%)
CMYKcmyk(64%, 69.7%, 0%, 30.2%)
CIE-LABlab(31.67, 41.57, -64.36)
CIE-LCHlch(31.67, 76.62, 302.86°)
OKLaboklab(42.87% 0.0279 -0.1857)
OKLCHoklch(42.87% 0.188 278.5)
XYZxyz(11.4668, 6.9418, 42.8465)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036B2 #A8B236
analogous
#366AB2 #4036B2 #7E36B2
triadic
#4036B2 #B24036 #36B240
tetradic
#4036B2 #B2366A #A8B236 #36B27E
square
#4036B2 #B2366A #A8B236 #36B27E
split-complementary
#4036B2 #B27E36 #6AB236
monochromatic
#1E1A54 #2F2883 #4036B2 #6259CD #8E88DB

Accessibility & contrast

On white

8.79
#4036B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4036B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036B2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036B2#FFFFFF#000000##FFFFFF
##4036B21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4036b2;
/* rgb */ color: rgb(64, 54, 178);
/* oklch */ color: oklch(42.9% 0.188 278.5);
Tailwind
colors: {
  custom: {
    50: '#836eca',
    500: '#4036b2',
    950: '#000000',
  },
}
SCSS
$custom: #4036b2;
$custom-light: #836eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4036b2",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 244.839,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42867,
    "c": 0.18777,
    "h": 278.5
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#4036B2
secondary
#BFC57F
accent
#DD4BD1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4036B2

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

Preview Lab → · Contrast checker → · Palette generator →

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