#2256A2#2256A2

#2256A2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.135 H 258.3°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2256A2
RGBrgb(34, 86, 162)
HSLhsl(216, 65%, 38%)
HSVhsv(216, 79%, 64%)
CMYKcmyk(79%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.12, 11.00, -46.03)
CIE-LCHlch(37.12, 47.33, 283.43°)
OKLaboklab(46.13% -0.0274 -0.1321)
OKLCHoklch(46.13% 0.135 258.3)
XYZxyz(10.5067, 9.6031, 35.4752)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A2 #A26E22
analogous
#2296A2 #2256A2 #2E22A2
triadic
#2256A2 #A22256 #56A222
tetradic
#2256A2 #A22296 #A26E22 #22A22E
square
#2256A2 #A22296 #A26E22 #22A22E
split-complementary
#2256A2 #A22E22 #96A222
monochromatic
#0D203D #173B6F #2256A2 #2E71D3 #6193DE

Accessibility & contrast

On white

7.19
#2256A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2256A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256A2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A2#FFFFFF#000000##FFFFFF
##2256A21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA5
Deuteranopia (green-blind)
#0C52A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2256a2;
/* rgb */ color: rgb(34, 86, 162);
/* oklch */ color: oklch(46.1% 0.135 258.3);
Tailwind
colors: {
  custom: {
    50: '#7185be',
    500: '#2256a2',
    950: '#000000',
  },
}
SCSS
$custom: #2256a2;
$custom-light: #7185be;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a2",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 215.625,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46125,
    "c": 0.13493,
    "h": 258.3
  },
  "luminance": 0.09604
}

Semantic roles & 50–950 ramp

primary
#2256A2
secondary
#C3995D
accent
#A440E8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A2

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

Preview Lab → · Contrast checker → · Palette generator →

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