#4030AA#4030AA

#4030AA is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.184 H 280.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4030AA
RGBrgb(64, 48, 170)
HSLhsl(248, 56%, 43%)
HSVhsv(248, 72%, 67%)
CMYKcmyk(62.4%, 71.8%, 0%, 33.3%)
CIE-LABlab(29.68, 42.46, -62.86)
CIE-LCHlch(29.68, 75.85, 304.04°)
OKLaboklab(41.21% 0.0337 -0.1813)
OKLCHoklch(41.21% 0.184 280.5)
XYZxyz(10.4247, 6.1054, 38.6515)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030AA #9AAA30
analogous
#305DAA #4030AA #7D30AA
triadic
#4030AA #AA4030 #30AA40
tetradic
#4030AA #AA305D #9AAA30 #30AA7D
square
#4030AA #AA305D #9AAA30 #30AA7D
split-complementary
#4030AA #AA7D30 #5DAA30
monochromatic
#1C154B #2E237A #4030AA #5C4BCC #877BDA

Accessibility & contrast

On white

9.45
#4030AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4030AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4030AA#FFFFFF#000000##FFFFFF
##4030AA1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4030aa;
/* rgb */ color: rgb(64, 48, 170);
/* oklch */ color: oklch(41.2% 0.184 280.5);
Tailwind
colors: {
  custom: {
    50: '#826ac4',
    500: '#4030aa',
    950: '#000000',
  },
}
SCSS
$custom: #4030aa;
$custom-light: #826ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4030aa",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 247.869,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.18438,
    "h": 280.5
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#4030AA
secondary
#B8C274
accent
#DF49CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4030AA

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

Preview Lab → · Contrast checker → · Palette generator →

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