#4064B2#4064B2

#4064B2 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 51.6% C 0.130 H 263.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#4064B2
RGBrgb(64, 100, 178)
HSLhsl(221, 47%, 47%)
HSVhsv(221, 64%, 70%)
CMYKcmyk(64%, 43.8%, 0%, 30.2%)
CIE-LABlab(43.39, 12.44, -45.39)
CIE-LCHlch(43.39, 47.07, 285.33°)
OKLaboklab(51.61% -0.0141 -0.1295)
OKLCHoklch(51.61% 0.13 263.8)
XYZxyz(14.7046, 13.4173, 43.9257)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4064B2 #B28E40
analogous
#409DB2 #4064B2 #5540B2
triadic
#4064B2 #B24064 #64B240
tetradic
#4064B2 #B2409D #B28E40 #40B255
square
#4064B2 #B2409D #B28E40 #40B255
split-complementary
#4064B2 #B25540 #9DB240
monochromatic
#203158 #304B85 #4064B2 #6786C8 #94AAD8

Accessibility & contrast

On white

5.70
#4064B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#4064B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4064B2
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4064B2#FFFFFF#000000##FFFFFF
##4064B21.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4064b2;
/* rgb */ color: rgb(64, 100, 178);
/* oklch */ color: oklch(51.6% 0.130 263.8);
Tailwind
colors: {
  custom: {
    50: '#808fc9',
    500: '#4064b2',
    950: '#000000',
  },
}
SCSS
$custom: #4064b2;
$custom-light: #808fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4064b2",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 178
  },
  "hsl": {
    "h": 221.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51611,
    "c": 0.13026,
    "h": 263.8
  },
  "luminance": 0.13419
}

Semantic roles & 50–950 ramp

primary
#4064B2
secondary
#C4B28A
accent
#AD51D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4064B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4064B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva