#2256E3#2256E3

#2256E3 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.4% C 0.221 H 264.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2256E3
RGBrgb(34, 86, 227)
HSLhsl(224, 78%, 51%)
HSVhsv(224, 85%, 89%)
CMYKcmyk(85%, 62.1%, 0%, 11%)
CIE-LABlab(42.06, 36.06, -75.84)
CIE-LCHlch(42.06, 83.98, 295.43°)
OKLaboklab(51.41% -0.022 -0.2197)
OKLCHoklch(51.41% 0.221 264.3)
XYZxyz(17.8477, 12.5395, 74.1378)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256E3 #E3AF22
analogous
#22B6E3 #2256E3 #4E22E3
triadic
#2256E3 #E32256 #56E322
tetradic
#2256E3 #E322B6 #E3AF22 #22E34E
square
#2256E3 #E322B6 #E3AF22 #22E34E
split-complementary
#2256E3 #E34E22 #B6E322
monochromatic
#102D7B #1640B1 #2256E3 #5880EA #8FA9F1

Accessibility & contrast

On white

5.99
#2256E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2256E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2256E3
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256E3#FFFFFF#000000##FFFFFF
##2256E31.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE8
Deuteranopia (green-blind)
#005BE0
Tritanopia (blue-blind)
#007B94
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2256e3;
/* rgb */ color: rgb(34, 86, 227);
/* oklch */ color: oklch(51.4% 0.221 264.3);
Tailwind
colors: {
  custom: {
    50: '#8185ed',
    500: '#2256e3',
    950: '#000000',
  },
}
SCSS
$custom: #2256e3;
$custom-light: #8185ed;
$custom-dark: #000000;
JSON
{
  "hex": "#2256e3",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 223.834,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51407,
    "c": 0.22079,
    "h": 264.3
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

primary
#2256E3
secondary
#DBC486
accent
#C034F4
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0B16
muted
#7D7C84

Preview Lab

Preview with #2256E3

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

Preview Lab → · Contrast checker → · Palette generator →

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