#2255A6#2255A6

#2255A6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.2% C 0.142 H 259.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2255A6
RGBrgb(34, 85, 166)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 80%, 65%)
CMYKcmyk(79.5%, 48.8%, 0%, 34.9%)
CIE-LABlab(37.09, 13.24, -48.46)
CIE-LCHlch(37.09, 50.24, 285.28°)
OKLaboklab(46.19% -0.0259 -0.1393)
OKLCHoklch(46.19% 0.142 259.5)
XYZxyz(10.7886, 9.5890, 37.3513)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A6 #A67322
analogous
#2297A6 #2255A6 #3122A6
triadic
#2255A6 #A62255 #55A622
tetradic
#2255A6 #A62297 #A67322 #22A631
square
#2255A6 #A62297 #A67322 #22A631
split-complementary
#2255A6 #A63122 #97A622
monochromatic
#0D2140 #183B73 #2255A6 #3070D5 #6393DF

Accessibility & contrast

On white

7.20
#2255A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2255A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A6
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A6#FFFFFF#000000##FFFFFF
##2255A61.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2255a6;
/* rgb */ color: rgb(34, 85, 166);
/* oklch */ color: oklch(46.2% 0.142 259.5);
Tailwind
colors: {
  custom: {
    50: '#7284c1',
    500: '#2255a6',
    950: '#000000',
  },
}
SCSS
$custom: #2255a6;
$custom-light: #7284c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a6",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 166
  },
  "hsl": {
    "h": 216.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4619,
    "c": 0.14167,
    "h": 259.5
  },
  "luminance": 0.0959
}

Semantic roles & 50–950 ramp

primary
#2255A6
secondary
#C49D5F
accent
#A73FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2255A6

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

Preview Lab → · Contrast checker → · Palette generator →

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