#4030AC#4030AC

#4030AC is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.187 H 280.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4030AC
RGBrgb(64, 48, 172)
HSLhsl(248, 56%, 43%)
HSVhsv(248, 72%, 67%)
CMYKcmyk(62.8%, 72.1%, 0%, 32.5%)
CIE-LABlab(29.87, 43.09, -63.75)
CIE-LCHlch(29.87, 76.94, 304.06°)
OKLaboklab(41.4% 0.0333 -0.1839)
OKLCHoklch(41.4% 0.187 280.3)
XYZxyz(10.6153, 6.1817, 39.6555)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030AC #9CAC30
analogous
#305EAC #4030AC #7E30AC
triadic
#4030AC #AC4030 #30AC40
tetradic
#4030AC #AC305E #9CAC30 #30AC7E
square
#4030AC #AC305E #9CAC30 #30AC7E
split-complementary
#4030AC #AC7E30 #5EAC30
monochromatic
#1C154C #2E237C #4030AC #5D4CCD #887CDA

Accessibility & contrast

On white

9.39
#4030AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4030AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030AC
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030AC#FFFFFF#000000##FFFFFF
##4030AC1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4030ac;
/* rgb */ color: rgb(64, 48, 172);
/* oklch */ color: oklch(41.4% 0.187 280.3);
Tailwind
colors: {
  custom: {
    50: '#826ac6',
    500: '#4030ac',
    950: '#000000',
  },
}
SCSS
$custom: #4030ac;
$custom-light: #826ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4030ac",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 247.742,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41403,
    "c": 0.18686,
    "h": 280.3
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#4030AC
secondary
#B9C375
accent
#E048CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4030AC

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

Preview Lab → · Contrast checker → · Palette generator →

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