#2256A5#2256A5

#2256A5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.139 H 258.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2256A5
RGBrgb(34, 86, 165)
HSLhsl(216, 66%, 39%)
HSVhsv(216, 79%, 65%)
CMYKcmyk(79.4%, 47.9%, 0%, 35.3%)
CIE-LABlab(37.32, 12.18, -47.51)
CIE-LCHlch(37.32, 49.04, 284.38°)
OKLaboklab(46.34% -0.0268 -0.1365)
OKLCHoklch(46.34% 0.139 258.9)
XYZxyz(10.7765, 9.7110, 36.8965)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A5 #A57122
analogous
#2298A5 #2256A5 #3022A5
triadic
#2256A5 #A52256 #56A522
tetradic
#2256A5 #A52298 #A57122 #22A530
square
#2256A5 #A52298 #A57122 #22A530
split-complementary
#2256A5 #A53022 #98A522
monochromatic
#0D2140 #183C72 #2256A5 #3071D4 #6394DF

Accessibility & contrast

On white

7.14
#2256A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2256A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256A5
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A5#FFFFFF#000000##FFFFFF
##2256A51.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#0152A3
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2256a5;
/* rgb */ color: rgb(34, 86, 165);
/* oklch */ color: oklch(46.3% 0.139 258.9);
Tailwind
colors: {
  custom: {
    50: '#7285c0',
    500: '#2256a5',
    950: '#000000',
  },
}
SCSS
$custom: #2256a5;
$custom-light: #7285c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a5",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 165
  },
  "hsl": {
    "h": 216.183,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46341,
    "c": 0.13907,
    "h": 258.9
  },
  "luminance": 0.09712
}

Semantic roles & 50–950 ramp

primary
#2256A5
secondary
#C49C5F
accent
#A53FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A5

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

Preview Lab → · Contrast checker → · Palette generator →

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