#2255A8#2255A8

#2255A8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.144 H 259.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2255A8
RGBrgb(34, 85, 168)
HSLhsl(217, 66%, 40%)
HSVhsv(217, 80%, 66%)
CMYKcmyk(79.8%, 49.4%, 0%, 34.1%)
CIE-LABlab(37.23, 14.02, -49.44)
CIE-LCHlch(37.23, 51.39, 285.84°)
OKLaboklab(46.34% -0.0256 -0.1421)
OKLCHoklch(46.34% 0.144 259.8)
XYZxyz(10.9735, 9.6629, 38.3250)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A8 #A87522
analogous
#2298A8 #2255A8 #3222A8
triadic
#2255A8 #A82255 #55A822
tetradic
#2255A8 #A82298 #A87522 #22A832
square
#2255A8 #A82298 #A87522 #22A832
split-complementary
#2255A8 #A83222 #98A822
monochromatic
#0D2142 #183B75 #2255A8 #3270D5 #6593E0

Accessibility & contrast

On white

7.16
#2255A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2255A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A8
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A8#FFFFFF#000000##FFFFFF
##2255A81.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAB
Deuteranopia (green-blind)
#0052A6
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2255a8;
/* rgb */ color: rgb(34, 85, 168);
/* oklch */ color: oklch(46.3% 0.144 259.8);
Tailwind
colors: {
  custom: {
    50: '#7384c2',
    500: '#2255a8',
    950: '#000000',
  },
}
SCSS
$custom: #2255a8;
$custom-light: #7384c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a8",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 168
  },
  "hsl": {
    "h": 217.164,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.14443,
    "h": 259.8
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#2255A8
secondary
#C59F61
accent
#A83FE9
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2255A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2255A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva