#2256B3#2256B3

#2256B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.158 H 261.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2256B3
RGBrgb(34, 86, 179)
HSLhsl(218, 68%, 42%)
HSVhsv(218, 81%, 70%)
CMYKcmyk(81%, 52%, 0%, 29.8%)
CIE-LABlab(38.29, 17.69, -54.24)
CIE-LCHlch(38.29, 57.05, 288.06°)
OKLaboklab(47.39% -0.0248 -0.1563)
OKLCHoklch(47.39% 0.158 261)
XYZxyz(12.1212, 10.2489, 43.9785)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256B3 #B37F22
analogous
#229FB3 #2256B3 #3722B3
triadic
#2256B3 #B32256 #56B322
tetradic
#2256B3 #B3229F #B37F22 #22B337
square
#2256B3 #B3229F #B37F22 #22B337
split-complementary
#2256B3 #B33722 #9FB322
monochromatic
#0E254C #183D80 #2256B3 #3972D9 #6C97E3

Accessibility & contrast

On white

6.89
#2256B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2256B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2256B3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256B3#FFFFFF#000000##FFFFFF
##2256B31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2256b3;
/* rgb */ color: rgb(34, 86, 179);
/* oklch */ color: oklch(47.4% 0.158 261.0);
Tailwind
colors: {
  custom: {
    50: '#7585ca',
    500: '#2256b3',
    950: '#000000',
  },
}
SCSS
$custom: #2256b3;
$custom-light: #7585ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2256b3",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 179
  },
  "hsl": {
    "h": 218.483,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4739,
    "c": 0.15824,
    "h": 261
  },
  "luminance": 0.1025
}

Semantic roles & 50–950 ramp

primary
#2256B3
secondary
#C9A668
accent
#AD3DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2256B3

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

Preview Lab → · Contrast checker → · Palette generator →

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