#4051A2#4051A2

#4051A2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.132 H 271.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4051A2
RGBrgb(64, 81, 162)
HSLhsl(230, 43%, 44%)
HSVhsv(230, 60%, 64%)
CMYKcmyk(60.5%, 50%, 0%, 36.5%)
CIE-LABlab(37.08, 19.04, -46.02)
CIE-LCHlch(37.08, 49.80, 292.48°)
OKLaboklab(46.47% 0.0034 -0.1316)
OKLCHoklch(46.47% 0.132 271.5)
XYZxyz(11.5762, 9.5826, 35.4150)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4051A2 #A29140
analogous
#4082A2 #4051A2 #6040A2
triadic
#4051A2 #A24051 #51A240
tetradic
#4051A2 #A24082 #A29140 #40A260
square
#4051A2 #A24082 #A29140 #40A260
split-complementary
#4051A2 #A26040 #82A240
monochromatic
#1D254A #2F3B76 #4051A2 #5F70C0 #8B97D1

Accessibility & contrast

On white

7.20
#4051A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4051A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4051A2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4051A2#FFFFFF#000000##FFFFFF
##4051A21.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#1553A0
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4051a2;
/* rgb */ color: rgb(64, 81, 162);
/* oklch */ color: oklch(46.5% 0.132 271.5);
Tailwind
colors: {
  custom: {
    50: '#7e81be',
    500: '#4051a2',
    950: '#000000',
  },
}
SCSS
$custom: #4051a2;
$custom-light: #7e81be;
$custom-dark: #000000;
JSON
{
  "hex": "#4051a2",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 229.592,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46474,
    "c": 0.13165,
    "h": 271.5
  },
  "luminance": 0.09583
}

Semantic roles & 50–950 ramp

primary
#4051A2
secondary
#BCB282
accent
#BD55D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4051A2

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

Preview Lab → · Contrast checker → · Palette generator →

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