#4034AA#4034AA

#4034AA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.8% C 0.180 H 279.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4034AA
RGBrgb(64, 52, 170)
HSLhsl(246, 53%, 44%)
HSVhsv(246, 69%, 67%)
CMYKcmyk(62.4%, 69.4%, 0%, 33.3%)
CIE-LABlab(30.51, 40.15, -61.48)
CIE-LCHlch(30.51, 73.43, 303.14°)
OKLaboklab(41.81% 0.0306 -0.1772)
OKLCHoklch(41.81% 0.18 279.8)
XYZxyz(10.5957, 6.4475, 38.7085)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034AA #9EAA34
analogous
#3463AA #4034AA #7B34AA
triadic
#4034AA #AA4034 #34AA40
tetradic
#4034AA #AA3463 #9EAA34 #34AA7B
square
#4034AA #AA3463 #9EAA34 #34AA7B
split-complementary
#4034AA #AA7B34 #63AA34
monochromatic
#1D174C #2E267B #4034AA #5E51CA #8980D8

Accessibility & contrast

On white

9.17
#4034AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4034AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4034AA
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4034AA#FFFFFF#000000##FFFFFF
##4034AA1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4034aa;
/* rgb */ color: rgb(64, 52, 170);
/* oklch */ color: oklch(41.8% 0.180 279.8);
Tailwind
colors: {
  custom: {
    50: '#816dc4',
    500: '#4034aa',
    950: '#000000',
  },
}
SCSS
$custom: #4034aa;
$custom-light: #816dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4034aa",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 246.102,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4181,
    "c": 0.17988,
    "h": 279.8
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#4034AA
secondary
#BAC178
accent
#DD4BCE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4034AA

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

Preview Lab → · Contrast checker → · Palette generator →

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