#2256A7#2256A7

#2256A7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.142 H 259.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2256A7
RGBrgb(34, 86, 167)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 80%, 65%)
CMYKcmyk(79.6%, 48.5%, 0%, 34.5%)
CIE-LABlab(37.45, 12.97, -48.48)
CIE-LCHlch(37.45, 50.19, 284.97°)
OKLaboklab(46.49% -0.0265 -0.1393)
OKLCHoklch(46.49% 0.142 259.2)
XYZxyz(10.9600, 9.7844, 37.8627)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A7 #A77322
analogous
#2299A7 #2256A7 #3022A7
triadic
#2256A7 #A72256 #56A722
tetradic
#2256A7 #A72299 #A77322 #22A730
square
#2256A7 #A72299 #A77322 #22A730
split-complementary
#2256A7 #A73022 #99A722
monochromatic
#0D2241 #183C74 #2256A7 #3171D5 #6494DF

Accessibility & contrast

On white

7.10
#2256A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2256A7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A7#FFFFFF#000000##FFFFFF
##2256A71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAA
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2256a7;
/* rgb */ color: rgb(34, 86, 167);
/* oklch */ color: oklch(46.5% 0.142 259.2);
Tailwind
colors: {
  custom: {
    50: '#7285c2',
    500: '#2256a7',
    950: '#000000',
  },
}
SCSS
$custom: #2256a7;
$custom-light: #7285c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a7",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 167
  },
  "hsl": {
    "h": 216.541,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46487,
    "c": 0.14183,
    "h": 259.2
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#2256A7
secondary
#C59D60
accent
#A63FE9
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A7

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

Preview Lab → · Contrast checker → · Palette generator →

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