#4030A2#4030A2

#4030A2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.174 H 281.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4030A2
RGBrgb(64, 48, 162)
HSLhsl(248, 54%, 41%)
HSVhsv(248, 70%, 64%)
CMYKcmyk(60.5%, 70.4%, 0%, 36.5%)
CIE-LABlab(28.93, 39.91, -59.25)
CIE-LCHlch(28.93, 71.44, 303.96°)
OKLaboklab(40.45% 0.0352 -0.1707)
OKLCHoklch(40.45% 0.174 281.6)
XYZxyz(9.6909, 5.8119, 34.7865)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4030A2 #92A230
analogous
#3059A2 #4030A2 #7930A2
triadic
#4030A2 #A24030 #30A240
tetradic
#4030A2 #A23059 #92A230 #30A279
square
#4030A2 #A23059 #92A230 #30A279
split-complementary
#4030A2 #A27930 #59A230
monochromatic
#1B1444 #2D2273 #4030A2 #5947C8 #8476D6

Accessibility & contrast

On white

9.71
#4030A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4030A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4030A2#FFFFFF#000000##FFFFFF
##4030A21.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4030a2;
/* rgb */ color: rgb(64, 48, 162);
/* oklch */ color: oklch(40.5% 0.174 281.6);
Tailwind
colors: {
  custom: {
    50: '#806abf',
    500: '#4030a2',
    950: '#000000',
  },
}
SCSS
$custom: #4030a2;
$custom-light: #806abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4030a2",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 248.421,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.1743,
    "h": 281.6
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#4030A2
secondary
#B3BE6F
accent
#DE4AC9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #4030A2

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

Preview Lab → · Contrast checker → · Palette generator →

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