#2256A3#2256A3

#2256A3 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.2% C 0.136 H 258.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2256A3
RGBrgb(34, 86, 163)
HSLhsl(216, 65%, 39%)
HSVhsv(216, 79%, 64%)
CMYKcmyk(79.1%, 47.2%, 0%, 36.1%)
CIE-LABlab(37.19, 11.39, -46.53)
CIE-LCHlch(37.19, 47.90, 283.76°)
OKLaboklab(46.2% -0.0272 -0.1336)
OKLCHoklch(46.2% 0.136 258.5)
XYZxyz(10.5959, 9.6388, 35.9452)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A3 #A36F22
analogous
#2296A3 #2256A3 #2E22A3
triadic
#2256A3 #A32256 #56A322
tetradic
#2256A3 #A32296 #A36F22 #22A32E
square
#2256A3 #A32296 #A36F22 #22A32E
split-complementary
#2256A3 #A32E22 #96A322
monochromatic
#0D213E #173B70 #2256A3 #2F71D4 #6194DE

Accessibility & contrast

On white

7.17
#2256A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2256A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256A3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A3#FFFFFF#000000##FFFFFF
##2256A31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA6
Deuteranopia (green-blind)
#0852A1
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2256a3;
/* rgb */ color: rgb(34, 86, 163);
/* oklch */ color: oklch(46.2% 0.136 258.5);
Tailwind
colors: {
  custom: {
    50: '#7185bf',
    500: '#2256a3',
    950: '#000000',
  },
}
SCSS
$custom: #2256a3;
$custom-light: #7185bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a3",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 163
  },
  "hsl": {
    "h": 215.814,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46197,
    "c": 0.13631,
    "h": 258.5
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#2256A3
secondary
#C39A5E
accent
#A43FE8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A3

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

Preview Lab → · Contrast checker → · Palette generator →

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