#4031B3#4031B3

#4031B3 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.2% C 0.194 H 279.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#4031B3
RGBrgb(64, 49, 179)
HSLhsl(247, 57%, 45%)
HSVhsv(247, 73%, 70%)
CMYKcmyk(64.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(30.74, 44.74, -66.50)
CIE-LCHlch(30.74, 80.15, 303.93°)
OKLaboklab(42.23% 0.0312 -0.1919)
OKLCHoklch(42.23% 0.194 279.2)
XYZxyz(11.3467, 6.5404, 43.3036)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B3 #A4B331
analogous
#3163B3 #4031B3 #8131B3
triadic
#4031B3 #B34031 #31B340
tetradic
#4031B3 #B33163 #A4B331 #31B381
square
#4031B3 #B33163 #A4B331 #31B381
split-complementary
#4031B3 #B38131 #63B331
monochromatic
#1E1753 #2F2483 #4031B3 #6052D0 #8C82DD

Accessibility & contrast

On white

9.10
#4031B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4031B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B3
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B3#FFFFFF#000000##FFFFFF
##4031B31.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4031b3;
/* rgb */ color: rgb(64, 49, 179);
/* oklch */ color: oklch(42.2% 0.194 279.2);
Tailwind
colors: {
  custom: {
    50: '#836bcb',
    500: '#4031b3',
    950: '#000000',
  },
}
SCSS
$custom: #4031b3;
$custom-light: #836bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b3",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 246.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.19443,
    "h": 279.2
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#4031B3
secondary
#BDC67A
accent
#E048CF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031B3

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

Preview Lab → · Contrast checker → · Palette generator →

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