#4031B8#4031B8

#4031B8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.201 H 278.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4031B8
RGBrgb(64, 49, 184)
HSLhsl(247, 58%, 46%)
HSVhsv(247, 73%, 72%)
CMYKcmyk(65.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(31.22, 46.32, -68.67)
CIE-LCHlch(31.22, 82.83, 304.00°)
OKLaboklab(42.72% 0.0302 -0.1982)
OKLCHoklch(42.72% 0.201 278.7)
XYZxyz(11.8616, 6.7463, 46.0152)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B8 #A9B831
analogous
#3165B8 #4031B8 #8331B8
triadic
#4031B8 #B84031 #31B840
tetradic
#4031B8 #B83165 #A9B831 #31B883
square
#4031B8 #B83165 #A9B831 #31B883
split-complementary
#4031B8 #B88331 #65B831
monochromatic
#1E1757 #2F2488 #4031B8 #6255D2 #8F85DE

Accessibility & contrast

On white

8.94
#4031B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4031B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B8
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B8#FFFFFF#000000##FFFFFF
##4031B81.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4031b8;
/* rgb */ color: rgb(64, 49, 184);
/* oklch */ color: oklch(42.7% 0.201 278.7);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#4031b8',
    950: '#000000',
  },
}
SCSS
$custom: #4031b8;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b8",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 246.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.20054,
    "h": 278.7
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4031B8

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

Preview Lab → · Contrast checker → · Palette generator →

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