#4030C7#4030C7

#4030C7 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.1% C 0.219 H 277.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#4030C7
RGBrgb(64, 48, 199)
HSLhsl(246, 61%, 48%)
HSVhsv(246, 76%, 78%)
CMYKcmyk(67.8%, 75.9%, 0%, 22%)
CIE-LABlab(32.54, 51.51, -75.33)
CIE-LCHlch(32.54, 91.26, 304.36°)
OKLaboklab(44.1% 0.0275 -0.2177)
OKLCHoklch(44.1% 0.219 277.2)
XYZxyz(13.4768, 7.3262, 54.7256)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030C7 #B7C730
analogous
#306BC7 #4030C7 #8B30C7
triadic
#4030C7 #C74030 #30C740
tetradic
#4030C7 #C7306B #B7C730 #30C78B
square
#4030C7 #C7306B #B7C730 #30C78B
split-complementary
#4030C7 #C78B30 #6BC730
monochromatic
#201864 #302496 #4030C7 #695CD8 #978EE4

Accessibility & contrast

On white

8.52
#4030C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4030C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030C7
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030C7#FFFFFF#000000##FFFFFF
##4030C71.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#0046C4
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4030c7;
/* rgb */ color: rgb(64, 48, 199);
/* oklch */ color: oklch(44.1% 0.219 277.2);
Tailwind
colors: {
  custom: {
    50: '#886cd9',
    500: '#4030c7',
    950: '#000000',
  },
}
SCSS
$custom: #4030c7;
$custom-light: #886cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4030c7",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 199
  },
  "hsl": {
    "h": 246.358,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44096,
    "c": 0.2194,
    "h": 277.2
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4030C7

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

Preview Lab → · Contrast checker → · Palette generator →

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