#4030C5#4030C5

#4030C5 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.9% C 0.217 H 277.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4030C5
RGBrgb(64, 48, 197)
HSLhsl(246, 61%, 48%)
HSVhsv(246, 76%, 77%)
CMYKcmyk(67.5%, 75.6%, 0%, 22.7%)
CIE-LABlab(32.33, 50.90, -74.50)
CIE-LCHlch(32.33, 90.22, 304.34°)
OKLaboklab(43.89% 0.0279 -0.2152)
OKLCHoklch(43.89% 0.217 277.4)
XYZxyz(13.2461, 7.2339, 53.5107)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030C5 #B5C530
analogous
#306AC5 #4030C5 #8A30C5
triadic
#4030C5 #C54030 #30C540
tetradic
#4030C5 #C5306A #B5C530 #30C58A
square
#4030C5 #C5306A #B5C530 #30C58A
split-complementary
#4030C5 #C58A30 #6AC530
monochromatic
#201863 #302494 #4030C5 #685BD7 #968CE3

Accessibility & contrast

On white

8.58
#4030C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4030C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030C5
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030C5#FFFFFF#000000##FFFFFF
##4030C51.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0046C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4030c5;
/* rgb */ color: rgb(64, 48, 197);
/* oklch */ color: oklch(43.9% 0.217 277.4);
Tailwind
colors: {
  custom: {
    50: '#876bd8',
    500: '#4030c5',
    950: '#000000',
  },
}
SCSS
$custom: #4030c5;
$custom-light: #876bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4030c5",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 246.443,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.43891,
    "c": 0.21704,
    "h": 277.4
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#4030C5
secondary
#C5CD84
accent
#E444D3
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #4030C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4030C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva