#4256A2#4256A2

#4256A2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.124 H 270.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#4256A2
RGBrgb(66, 86, 162)
HSLhsl(228, 42%, 45%)
HSVhsv(228, 59%, 64%)
CMYKcmyk(59.3%, 46.9%, 0%, 36.5%)
CIE-LABlab(38.59, 16.19, -43.60)
CIE-LCHlch(38.59, 46.51, 290.37°)
OKLaboklab(47.65% 0.0001 -0.1244)
OKLCHoklch(47.65% 0.124 270.1)
XYZxyz(12.0940, 10.4215, 35.5497)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4256A2 #A28E42
analogous
#4286A2 #4256A2 #5E42A2
triadic
#4256A2 #A24256 #56A242
tetradic
#4256A2 #A24286 #A28E42 #42A25E
square
#4256A2 #A24286 #A28E42 #42A25E
split-complementary
#4256A2 #A25E42 #86A242
monochromatic
#1F284B #303F77 #4256A2 #6275BF #8E9CD1

Accessibility & contrast

On white

6.81
#4256A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4256A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4256A2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4256A2#FFFFFF#000000##FFFFFF
##4256A21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#2457A0
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4256a2;
/* rgb */ color: rgb(66, 86, 162);
/* oklch */ color: oklch(47.7% 0.124 270.1);
Tailwind
colors: {
  custom: {
    50: '#7f85be',
    500: '#4256a2',
    950: '#000000',
  },
}
SCSS
$custom: #4256a2;
$custom-light: #7f85be;
$custom-dark: #000000;
JSON
{
  "hex": "#4256a2",
  "rgb": {
    "r": 66,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 227.5,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47652,
    "c": 0.12438,
    "h": 270.1
  },
  "luminance": 0.10422
}

Semantic roles & 50–950 ramp

primary
#4256A2
secondary
#BCB084
accent
#B856D2
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #4256A2

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

Preview Lab → · Contrast checker → · Palette generator →

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