#2256A1#2256A1

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

Color values

HEX#2256A1
RGBrgb(34, 86, 161)
HSLhsl(215, 65%, 38%)
HSVhsv(215, 79%, 63%)
CMYKcmyk(78.9%, 46.6%, 0%, 36.9%)
CIE-LABlab(37.05, 10.60, -45.54)
CIE-LCHlch(37.05, 46.76, 283.11°)
OKLaboklab(46.05% -0.0275 -0.1307)
OKLCHoklch(46.05% 0.134 258.1)
XYZxyz(10.4181, 9.5676, 35.0090)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A1 #A16D22
analogous
#2295A1 #2256A1 #2D22A1
triadic
#2256A1 #A12256 #56A122
tetradic
#2256A1 #A12295 #A16D22 #22A12D
square
#2256A1 #A12295 #A16D22 #22A12D
split-complementary
#2256A1 #A12D22 #95A122
monochromatic
#0D203C #173B6E #2256A1 #2D71D3 #6093DD

Accessibility & contrast

On white

7.21
#2256A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2256A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256A1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A1#FFFFFF#000000##FFFFFF
##2256A11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA4
Deuteranopia (green-blind)
#0F52A0
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2256a1;
/* rgb */ color: rgb(34, 86, 161);
/* oklch */ color: oklch(46.1% 0.134 258.1);
Tailwind
colors: {
  custom: {
    50: '#7185bd',
    500: '#2256a1',
    950: '#000000',
  },
}
SCSS
$custom: #2256a1;
$custom-light: #7185bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a1",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 161
  },
  "hsl": {
    "h": 215.433,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.13355,
    "h": 258.1
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#2256A1
secondary
#C2995D
accent
#A340E8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A1

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

Preview Lab → · Contrast checker → · Palette generator →

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