#2256A0#2256A0

#2256A0 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.0% C 0.132 H 257.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2256A0
RGBrgb(34, 86, 160)
HSLhsl(215, 65%, 38%)
HSVhsv(215, 79%, 63%)
CMYKcmyk(78.8%, 46.3%, 0%, 37.3%)
CIE-LABlab(36.99, 10.21, -45.05)
CIE-LCHlch(36.99, 46.19, 282.77°)
OKLaboklab(45.98% -0.0277 -0.1292)
OKLCHoklch(45.98% 0.132 257.9)
XYZxyz(10.3303, 9.5325, 34.5464)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256A0 #A06C22
analogous
#2295A0 #2256A0 #2D22A0
triadic
#2256A0 #A02256 #56A022
tetradic
#2256A0 #A02295 #A06C22 #22A02D
square
#2256A0 #A02295 #A06C22 #22A02D
split-complementary
#2256A0 #A02D22 #95A022
monochromatic
#0D203B #173B6E #2256A0 #2D71D2 #5F93DD

Accessibility & contrast

On white

7.22
#2256A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2256A0
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256A0#FFFFFF#000000##FFFFFF
##2256A01.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5DA3
Deuteranopia (green-blind)
#12529F
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2256a0;
/* rgb */ color: rgb(34, 86, 160);
/* oklch */ color: oklch(46.0% 0.132 257.9);
Tailwind
colors: {
  custom: {
    50: '#7185bc',
    500: '#2256a0',
    950: '#000000',
  },
}
SCSS
$custom: #2256a0;
$custom-light: #7185bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2256a0",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 160
  },
  "hsl": {
    "h": 215.238,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45982,
    "c": 0.13216,
    "h": 257.9
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#2256A0
secondary
#C2985C
accent
#A340E8
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2256A0

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

Preview Lab → · Contrast checker → · Palette generator →

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