#4031BC#4031BC

#4031BC is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.1% C 0.205 H 278.2°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4031BC
RGBrgb(64, 49, 188)
HSLhsl(246, 59%, 46%)
HSVhsv(246, 74%, 74%)
CMYKcmyk(66%, 73.9%, 0%, 26.3%)
CIE-LABlab(31.62, 47.57, -70.39)
CIE-LCHlch(31.62, 84.96, 304.05°)
OKLaboklab(43.11% 0.0294 -0.2033)
OKLCHoklch(43.11% 0.205 278.2)
XYZxyz(12.2868, 6.9164, 48.2547)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031BC #ADBC31
analogous
#3168BC #4031BC #8631BC
triadic
#4031BC #BC4031 #31BC40
tetradic
#4031BC #BC3168 #ADBC31 #31BC86
square
#4031BC #BC3168 #ADBC31 #31BC86
split-complementary
#4031BC #BC8631 #68BC31
monochromatic
#1F185B #2F248B #4031BC #6457D3 #9188E0

Accessibility & contrast

On white

8.81
#4031BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4031BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031BC
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031BC#FFFFFF#000000##FFFFFF
##4031BC1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4031bc;
/* rgb */ color: rgb(64, 49, 188);
/* oklch */ color: oklch(43.1% 0.205 278.2);
Tailwind
colors: {
  custom: {
    50: '#856cd1',
    500: '#4031bc',
    950: '#000000',
  },
}
SCSS
$custom: #4031bc;
$custom-light: #856cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4031bc",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 246.475,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43114,
    "c": 0.20538,
    "h": 278.2
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#4031BC
secondary
#C2CA7F
accent
#E246D1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4031BC

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

Preview Lab → · Contrast checker → · Palette generator →

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