#2256B4#2256B4

#2256B4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.5% C 0.160 H 261.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2256B4
RGBrgb(34, 86, 180)
HSLhsl(219, 68%, 42%)
HSVhsv(219, 81%, 71%)
CMYKcmyk(81.1%, 52.2%, 0%, 29.4%)
CIE-LABlab(38.36, 18.08, -54.72)
CIE-LCHlch(38.36, 57.63, 288.28°)
OKLaboklab(47.47% -0.0247 -0.1577)
OKLCHoklch(47.47% 0.16 261.1)
XYZxyz(12.2227, 10.2895, 44.5130)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256B4 #B48022
analogous
#229FB4 #2256B4 #3722B4
triadic
#2256B4 #B42256 #56B422
tetradic
#2256B4 #B4229F #B48022 #22B437
square
#2256B4 #B4229F #B48022 #22B437
split-complementary
#2256B4 #B43722 #9FB422
monochromatic
#0F254D #183D81 #2256B4 #3A73DA #6D97E3

Accessibility & contrast

On white

6.87
#2256B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2256B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2256B4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256B4#FFFFFF#000000##FFFFFF
##2256B41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2256b4;
/* rgb */ color: rgb(34, 86, 180);
/* oklch */ color: oklch(47.5% 0.160 261.1);
Tailwind
colors: {
  custom: {
    50: '#7585cb',
    500: '#2256b4',
    950: '#000000',
  },
}
SCSS
$custom: #2256b4;
$custom-light: #7585cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2256b4",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 180
  },
  "hsl": {
    "h": 218.63,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47468,
    "c": 0.1596,
    "h": 261.1
  },
  "luminance": 0.10291
}

Semantic roles & 50–950 ramp

primary
#2256B4
secondary
#CAA768
accent
#AD3DEB
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2256B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2256B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva