#4031C8#4031C8

#4031C8 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.3% C 0.220 H 277.0°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4031C8
RGBrgb(64, 49, 200)
HSLhsl(246, 61%, 49%)
HSVhsv(246, 76%, 78%)
CMYKcmyk(68%, 75.5%, 0%, 21.6%)
CIE-LABlab(32.82, 51.30, -75.44)
CIE-LCHlch(32.82, 91.23, 304.21°)
OKLaboklab(44.33% 0.0267 -0.218)
OKLCHoklch(44.33% 0.22 277)
XYZxyz(13.6346, 7.4555, 55.3529)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4031C8 #B9C831
analogous
#316EC8 #4031C8 #8C31C8
triadic
#4031C8 #C84031 #31C840
tetradic
#4031C8 #C8316E #B9C831 #31C88C
square
#4031C8 #C8316E #B9C831 #31C88C
split-complementary
#4031C8 #C88C31 #6EC831
monochromatic
#211966 #302597 #4031C8 #6B5FD8 #9890E4

Accessibility & contrast

On white

8.43
#4031C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4031C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4031C8
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4031C8#FFFFFF#000000##FFFFFF
##4031C81.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#0047C5
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4031c8;
/* rgb */ color: rgb(64, 49, 200);
/* oklch */ color: oklch(44.3% 0.220 277.0);
Tailwind
colors: {
  custom: {
    50: '#886cda',
    500: '#4031c8',
    950: '#000000',
  },
}
SCSS
$custom: #4031c8;
$custom-light: #886cda;
$custom-dark: #000000;
JSON
{
  "hex": "#4031c8",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 245.96,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.21964,
    "h": 277
  },
  "luminance": 0.07457
}

Semantic roles & 50–950 ramp

primary
#4031C8
secondary
#C7CE86
accent
#E444D4
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4031C8

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

Preview Lab → · Contrast checker → · Palette generator →

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