#2256A8#2256A8

#2256A8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.6% C 0.143 H 259.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2256A8
RGBrgb(34, 86, 168)
HSLhsl(217, 66%, 40%)
HSVhsv(217, 80%, 66%)
CMYKcmyk(79.8%, 48.8%, 0%, 34.1%)
CIE-LABlab(37.52, 13.36, -48.97)
CIE-LCHlch(37.52, 50.76, 285.26°)
OKLaboklab(46.56% -0.0263 -0.1408)
OKLCHoklch(46.56% 0.143 259.4)
XYZxyz(11.0528, 9.8215, 38.3514)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A8 #A87422
analogous
#2299A8 #2256A8 #3122A8
triadic
#2256A8 #A82256 #56A822
tetradic
#2256A8 #A82299 #A87422 #22A831
square
#2256A8 #A82299 #A87422 #22A831
split-complementary
#2256A8 #A83122 #99A822
monochromatic
#0D2242 #183C75 #2256A8 #3271D5 #6594E0

Accessibility & contrast

On white

7.08
#2256A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2256A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256A8
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A8#FFFFFF#000000##FFFFFF
##2256A81.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2256a8;
/* rgb */ color: rgb(34, 86, 168);
/* oklch */ color: oklch(46.6% 0.143 259.4);
Tailwind
colors: {
  custom: {
    50: '#7385c2',
    500: '#2256a8',
    950: '#000000',
  },
}
SCSS
$custom: #2256a8;
$custom-light: #7385c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a8",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 216.716,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46561,
    "c": 0.14321,
    "h": 259.4
  },
  "luminance": 0.09823
}

Semantic roles & 50–950 ramp

primary
#2256A8
secondary
#C59E61
accent
#A73FE9
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A8

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

Preview Lab → · Contrast checker → · Palette generator →

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