#2256AB#2256AB

#2256AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.147 H 259.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2256AB
RGBrgb(34, 86, 171)
HSLhsl(217, 67%, 40%)
HSVhsv(217, 80%, 67%)
CMYKcmyk(80.1%, 49.7%, 0%, 32.9%)
CIE-LABlab(37.72, 14.54, -50.42)
CIE-LCHlch(37.72, 52.48, 286.09°)
OKLaboklab(46.78% -0.0259 -0.145)
OKLCHoklch(46.78% 0.147 259.9)
XYZxyz(11.3355, 9.9346, 39.8403)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256AB #AB7722
analogous
#229BAB #2256AB #3222AB
triadic
#2256AB #AB2256 #56AB22
tetradic
#2256AB #AB229B #AB7722 #22AB32
square
#2256AB #AB229B #AB7722 #22AB32
split-complementary
#2256AB #AB3222 #9BAB22
monochromatic
#0E2345 #183C78 #2256AB #3471D7 #6795E1

Accessibility & contrast

On white

7.03
#2256AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2256AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2256AB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256AB#FFFFFF#000000##FFFFFF
##2256AB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2256ab;
/* rgb */ color: rgb(34, 86, 171);
/* oklch */ color: oklch(46.8% 0.147 259.9);
Tailwind
colors: {
  custom: {
    50: '#7385c5',
    500: '#2256ab',
    950: '#000000',
  },
}
SCSS
$custom: #2256ab;
$custom-light: #7385c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2256ab",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 217.226,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46783,
    "c": 0.14732,
    "h": 259.9
  },
  "luminance": 0.09936
}

Semantic roles & 50–950 ramp

primary
#2256AB
secondary
#C6A063
accent
#A93EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2256AB

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

Preview Lab → · Contrast checker → · Palette generator →

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