#2256A4#2256A4

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

Color values

HEX#2256A4
RGBrgb(34, 86, 164)
HSLhsl(216, 66%, 39%)
HSVhsv(216, 79%, 64%)
CMYKcmyk(79.3%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.25, 11.79, -47.02)
CIE-LCHlch(37.25, 48.47, 284.07°)
OKLaboklab(46.27% -0.027 -0.135)
OKLCHoklch(46.27% 0.138 258.7)
XYZxyz(10.6859, 9.6747, 36.4190)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A4 #A47022
analogous
#2297A4 #2256A4 #2F22A4
triadic
#2256A4 #A42256 #56A422
tetradic
#2256A4 #A42297 #A47022 #22A42F
square
#2256A4 #A42297 #A47022 #22A42F
split-complementary
#2256A4 #A42F22 #97A422
monochromatic
#0D213F #173B71 #2256A4 #2F71D4 #6294DE

Accessibility & contrast

On white

7.15
#2256A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2256A4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A4#FFFFFF#000000##FFFFFF
##2256A41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#0452A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2256a4;
/* rgb */ color: rgb(34, 86, 164);
/* oklch */ color: oklch(46.3% 0.138 258.7);
Tailwind
colors: {
  custom: {
    50: '#7285bf',
    500: '#2256a4',
    950: '#000000',
  },
}
SCSS
$custom: #2256a4;
$custom-light: #7285bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a4",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 216,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46269,
    "c": 0.1377,
    "h": 258.7
  },
  "luminance": 0.09676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2256A4

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

Preview Lab → · Contrast checker → · Palette generator →

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