#4030AB#4030AB

#4030AB is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.186 H 280.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4030AB
RGBrgb(64, 48, 171)
HSLhsl(248, 56%, 43%)
HSVhsv(248, 72%, 67%)
CMYKcmyk(62.6%, 71.9%, 0%, 32.9%)
CIE-LABlab(29.77, 42.77, -63.30)
CIE-LCHlch(29.77, 76.40, 304.05°)
OKLaboklab(41.31% 0.0335 -0.1826)
OKLCHoklch(41.31% 0.186 280.4)
XYZxyz(10.5197, 6.1434, 39.1516)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030AB #9BAB30
analogous
#305DAB #4030AB #7D30AB
triadic
#4030AB #AB4030 #30AB40
tetradic
#4030AB #AB305D #9BAB30 #30AB7D
square
#4030AB #AB305D #9BAB30 #30AB7D
split-complementary
#4030AB #AB7D30 #5DAB30
monochromatic
#1C154B #2E237B #4030AB #5C4CCD #887BDA

Accessibility & contrast

On white

9.42
#4030AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4030AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4030AB
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4030AB#FFFFFF#000000##FFFFFF
##4030AB1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4030ab;
/* rgb */ color: rgb(64, 48, 171);
/* oklch */ color: oklch(41.3% 0.186 280.4);
Tailwind
colors: {
  custom: {
    50: '#826ac5',
    500: '#4030ab',
    950: '#000000',
  },
}
SCSS
$custom: #4030ab;
$custom-light: #826ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#4030ab",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 247.805,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41307,
    "c": 0.18562,
    "h": 280.4
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#4030AB
secondary
#B8C374
accent
#DF48CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4030AB

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

Preview Lab → · Contrast checker → · Palette generator →

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