#4030A4#4030A4

#4030A4 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.177 H 281.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4030A4
RGBrgb(64, 48, 164)
HSLhsl(248, 55%, 42%)
HSVhsv(248, 71%, 64%)
CMYKcmyk(61%, 70.7%, 0%, 35.7%)
CIE-LABlab(29.12, 40.55, -60.16)
CIE-LCHlch(29.12, 72.55, 303.98°)
OKLaboklab(40.64% 0.0348 -0.1734)
OKLCHoklch(40.64% 0.177 281.4)
XYZxyz(9.8700, 5.8835, 35.7303)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030A4 #94A430
analogous
#305AA4 #4030A4 #7A30A4
triadic
#4030A4 #A44030 #30A440
tetradic
#4030A4 #A4305A #94A430 #30A47A
square
#4030A4 #A4305A #94A430 #30A47A
split-complementary
#4030A4 #A47A30 #5AA430
monochromatic
#1B1445 #2E2275 #4030A4 #5A48C9 #8477D7

Accessibility & contrast

On white

9.65
#4030A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4030A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030A4
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030A4#FFFFFF#000000##FFFFFF
##4030A41.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4030a4;
/* rgb */ color: rgb(64, 48, 164);
/* oklch */ color: oklch(40.6% 0.177 281.4);
Tailwind
colors: {
  custom: {
    50: '#816ac0',
    500: '#4030a4',
    950: '#000000',
  },
}
SCSS
$custom: #4030a4;
$custom-light: #816ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4030a4",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 248.276,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.17684,
    "h": 281.4
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#4030A4
secondary
#B4BF70
accent
#DE4ACA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #4030A4

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

Preview Lab → · Contrast checker → · Palette generator →

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