#4031BF#4031BF

#4031BF is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.4% C 0.209 H 277.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4031BF
RGBrgb(64, 49, 191)
HSLhsl(246, 59%, 47%)
HSVhsv(246, 74%, 75%)
CMYKcmyk(66.5%, 74.3%, 0%, 25.1%)
CIE-LABlab(31.91, 48.51, -71.67)
CIE-LCHlch(31.91, 86.54, 304.10°)
OKLaboklab(43.41% 0.0287 -0.207)
OKLCHoklch(43.41% 0.209 277.9)
XYZxyz(12.6136, 7.0471, 49.9756)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031BF #B0BF31
analogous
#3169BF #4031BF #8731BF
triadic
#4031BF #BF4031 #31BF40
tetradic
#4031BF #BF3169 #B0BF31 #31BF87
square
#4031BF #BF3169 #B0BF31 #31BF87
split-complementary
#4031BF #BF8731 #69BF31
monochromatic
#1F185E #30258E #4031BF #6659D4 #938AE1

Accessibility & contrast

On white

8.72
#4031BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4031BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031BF
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031BF#FFFFFF#000000##FFFFFF
##4031BF1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C3
Deuteranopia (green-blind)
#0045BC
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4031bf;
/* rgb */ color: rgb(64, 49, 191);
/* oklch */ color: oklch(43.4% 0.209 277.9);
Tailwind
colors: {
  custom: {
    50: '#866cd4',
    500: '#4031bf',
    950: '#000000',
  },
}
SCSS
$custom: #4031bf;
$custom-light: #866cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4031bf",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 246.338,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43414,
    "c": 0.20898,
    "h": 277.9
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#4031BF
secondary
#C3CB81
accent
#E245D2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #4031BF

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

Preview Lab → · Contrast checker → · Palette generator →

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