#4031B7#4031B7

#4031B7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.6% C 0.199 H 278.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#4031B7
RGBrgb(64, 49, 183)
HSLhsl(247, 58%, 45%)
HSVhsv(247, 73%, 72%)
CMYKcmyk(65%, 73.2%, 0%, 28.2%)
CIE-LABlab(31.12, 46.01, -68.24)
CIE-LCHlch(31.12, 82.30, 303.99°)
OKLaboklab(42.62% 0.0304 -0.197)
OKLCHoklch(42.62% 0.199 278.8)
XYZxyz(11.7572, 6.7046, 45.4651)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B7 #A8B731
analogous
#3165B7 #4031B7 #8331B7
triadic
#4031B7 #B74031 #31B740
tetradic
#4031B7 #B73165 #A8B731 #31B783
square
#4031B7 #B73165 #A8B731 #31B783
split-complementary
#4031B7 #B78331 #65B731
monochromatic
#1E1756 #2F2487 #4031B7 #6254D1 #8E84DE

Accessibility & contrast

On white

8.97
#4031B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4031B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B7
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B7#FFFFFF#000000##FFFFFF
##4031B71.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4031b7;
/* rgb */ color: rgb(64, 49, 183);
/* oklch */ color: oklch(42.6% 0.199 278.8);
Tailwind
colors: {
  custom: {
    50: '#846bce',
    500: '#4031b7',
    950: '#000000',
  },
}
SCSS
$custom: #4031b7;
$custom-light: #846bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b7",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 246.716,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.19932,
    "h": 278.8
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#4031B7
secondary
#BFC87C
accent
#E147D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #4031B7

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

Preview Lab → · Contrast checker → · Palette generator →

#4031B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva