#4036B1#4036B1

#4036B1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.8% C 0.186 H 278.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4036B1
RGBrgb(64, 54, 177)
HSLhsl(245, 53%, 45%)
HSVhsv(245, 69%, 69%)
CMYKcmyk(63.8%, 69.5%, 0%, 30.6%)
CIE-LABlab(31.58, 41.25, -63.92)
CIE-LCHlch(31.58, 76.07, 302.83°)
OKLaboklab(42.77% 0.028 -0.1844)
OKLCHoklch(42.77% 0.186 278.6)
XYZxyz(11.3668, 6.9017, 42.3196)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036B1 #A7B136
analogous
#3669B1 #4036B1 #7D36B1
triadic
#4036B1 #B14036 #36B140
tetradic
#4036B1 #B13669 #A7B136 #36B17D
square
#4036B1 #B13669 #A7B136 #36B17D
split-complementary
#4036B1 #B17D36 #69B136
monochromatic
#1E1953 #2F2882 #4036B1 #6258CC #8E87DA

Accessibility & contrast

On white

8.82
#4036B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4036B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036B1
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036B1#FFFFFF#000000##FFFFFF
##4036B11.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4036b1;
/* rgb */ color: rgb(64, 54, 177);
/* oklch */ color: oklch(42.8% 0.186 278.6);
Tailwind
colors: {
  custom: {
    50: '#836ec9',
    500: '#4036b1',
    950: '#000000',
  },
}
SCSS
$custom: #4036b1;
$custom-light: #836ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4036b1",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 177
  },
  "hsl": {
    "h": 244.878,
    "s": 53.247,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42773,
    "c": 0.18649,
    "h": 278.6
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#4036B1
secondary
#BFC47F
accent
#DD4BD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4036B1

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

Preview Lab → · Contrast checker → · Palette generator →

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