#4031B2#4031B2

#4031B2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.1% C 0.193 H 279.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#4031B2
RGBrgb(64, 49, 178)
HSLhsl(247, 57%, 45%)
HSVhsv(247, 72%, 70%)
CMYKcmyk(64%, 72.5%, 0%, 30.2%)
CIE-LABlab(30.64, 44.43, -66.06)
CIE-LCHlch(30.64, 79.61, 303.92°)
OKLaboklab(42.13% 0.0314 -0.1906)
OKLCHoklch(42.13% 0.193 279.4)
XYZxyz(11.2460, 6.5001, 42.7729)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031B2 #A3B231
analogous
#3162B2 #4031B2 #8131B2
triadic
#4031B2 #B24031 #31B240
tetradic
#4031B2 #B23162 #A3B231 #31B281
square
#4031B2 #B23162 #A3B231 #31B281
split-complementary
#4031B2 #B28131 #62B231
monochromatic
#1D1752 #2F2482 #4031B2 #6051CF #8C81DC

Accessibility & contrast

On white

9.13
#4031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4031B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031B2
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031B2#FFFFFF#000000##FFFFFF
##4031B21.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4031b2;
/* rgb */ color: rgb(64, 49, 178);
/* oklch */ color: oklch(42.1% 0.193 279.4);
Tailwind
colors: {
  custom: {
    50: '#836bca',
    500: '#4031b2',
    950: '#000000',
  },
}
SCSS
$custom: #4031b2;
$custom-light: #836bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4031b2",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 246.977,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.19321,
    "h": 279.4
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#4031B2
secondary
#BDC579
accent
#E048CE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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