#4034AF#4034AF

#4034AF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.3% C 0.186 H 279.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#4034AF
RGBrgb(64, 52, 175)
HSLhsl(246, 54%, 45%)
HSVhsv(246, 70%, 69%)
CMYKcmyk(63.4%, 70.3%, 0%, 31.4%)
CIE-LABlab(30.97, 41.76, -63.72)
CIE-LCHlch(30.97, 76.19, 303.24°)
OKLaboklab(42.28% 0.0298 -0.1838)
OKLCHoklch(42.28% 0.186 279.2)
XYZxyz(11.0777, 6.6403, 41.2471)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4034AF #A3AF34
analogous
#3465AF #4034AF #7E34AF
triadic
#4034AF #AF4034 #34AF40
tetradic
#4034AF #AF3465 #A3AF34 #34AF7E
square
#4034AF #AF3465 #A3AF34 #34AF7E
split-complementary
#4034AF #AF7E34 #65AF34
monochromatic
#1D1851 #2F2680 #4034AF #6054CC #8C83DA

Accessibility & contrast

On white

9.02
#4034AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4034AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4034AF#FFFFFF#000000##FFFFFF
##4034AF1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4034af;
/* rgb */ color: rgb(64, 52, 175);
/* oklch */ color: oklch(42.3% 0.186 279.2);
Tailwind
colors: {
  custom: {
    50: '#826dc8',
    500: '#4034af',
    950: '#000000',
  },
}
SCSS
$custom: #4034af;
$custom-light: #826dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4034af",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 245.854,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.18621,
    "h": 279.2
  },
  "luminance": 0.06641
}

Semantic roles & 50–950 ramp

primary
#4034AF
secondary
#BDC47B
accent
#DE4ACF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4034AF

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

Preview Lab → · Contrast checker → · Palette generator →

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