#4036CB#4036CB

#4036CB is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.3% C 0.218 H 276.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4036CB
RGBrgb(64, 54, 203)
HSLhsl(244, 59%, 50%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(68.5%, 73.4%, 0%, 20.4%)
CIE-LABlab(34.06, 49.58, -75.15)
CIE-LCHlch(34.06, 90.03, 303.41°)
OKLaboklab(45.29% 0.0234 -0.2172)
OKLCHoklch(45.29% 0.218 276.1)
XYZxyz(14.2095, 8.0388, 57.2911)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4036CB #C1CB36
analogous
#3676CB #4036CB #8A36CB
triadic
#4036CB #CB4036 #36CB40
tetradic
#4036CB #CB3676 #C1CB36 #36CB8A
square
#4036CB #CB3676 #C1CB36 #36CB8A
split-complementary
#4036CB #CB8A36 #76CB36
monochromatic
#211C6B #30289C #4036CB #6E67D8 #9C97E4

Accessibility & contrast

On white

8.05
#4036CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4036CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4036CB
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4036CB#FFFFFF#000000##FFFFFF
##4036CB1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CF
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4036cb;
/* rgb */ color: rgb(64, 54, 203);
/* oklch */ color: oklch(45.3% 0.218 276.1);
Tailwind
colors: {
  custom: {
    50: '#886fdc',
    500: '#4036cb',
    950: '#000000',
  },
}
SCSS
$custom: #4036cb;
$custom-light: #886fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4036cb",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 244.027,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.21843,
    "h": 276.1
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#4036CB
secondary
#CBD08D
accent
#E246D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4036CB

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

Preview Lab → · Contrast checker → · Palette generator →

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