#4027BE#4027BE

#4027BE is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.1% C 0.217 H 279.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4027BE
RGBrgb(64, 39, 190)
HSLhsl(250, 66%, 45%)
HSVhsv(250, 79%, 75%)
CMYKcmyk(66.3%, 79.5%, 0%, 25.5%)
CIE-LABlab(30.05, 53.24, -74.15)
CIE-LCHlch(30.05, 91.28, 305.68°)
OKLaboklab(42.08% 0.0344 -0.2141)
OKLCHoklch(42.08% 0.217 279.1)
XYZxyz(12.1312, 6.2577, 49.2738)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027BE #A5BE27
analogous
#2759BE #4027BE #8C27BE
triadic
#4027BE #BE4027 #27BE40
tetradic
#4027BE #BE2759 #A5BE27 #27BE8C
square
#4027BE #BE2759 #A5BE27 #27BE8C
split-complementary
#4027BE #BE8C27 #59BE27
monochromatic
#1E1258 #2F1D8B #4027BE #6149DA #8D7BE4

Accessibility & contrast

On white

9.33
#4027BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4027BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027BE
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027BE#FFFFFF#000000##FFFFFF
##4027BE1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC2
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005573
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4027be;
/* rgb */ color: rgb(64, 39, 190);
/* oklch */ color: oklch(42.1% 0.217 279.1);
Tailwind
colors: {
  custom: {
    50: '#8666d3',
    500: '#4027be',
    950: '#000000',
  },
}
SCSS
$custom: #4027be;
$custom-light: #8666d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4027be",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 190
  },
  "hsl": {
    "h": 249.934,
    "s": 65.939,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4208,
    "c": 0.21686,
    "h": 279.1
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#4027BE
secondary
#BECC75
accent
#E93FCD
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4027BE

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

Preview Lab → · Contrast checker → · Palette generator →

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