#2255A5#2255A5

#2255A5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.140 H 259.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2255A5
RGBrgb(34, 85, 165)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 79%, 65%)
CMYKcmyk(79.4%, 48.5%, 0%, 35.3%)
CIE-LABlab(37.03, 12.84, -47.98)
CIE-LCHlch(37.03, 49.66, 284.99°)
OKLaboklab(46.12% -0.026 -0.1379)
OKLCHoklch(46.12% 0.14 259.3)
XYZxyz(10.6972, 9.5524, 36.8700)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A5 #A57222
analogous
#2297A5 #2255A5 #3122A5
triadic
#2255A5 #A52255 #55A522
tetradic
#2255A5 #A52297 #A57222 #22A531
square
#2255A5 #A52297 #A57222 #22A531
split-complementary
#2255A5 #A53122 #97A522
monochromatic
#0D2140 #183B72 #2255A5 #3070D4 #6393DF

Accessibility & contrast

On white

7.21
#2255A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2255A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A5#FFFFFF#000000##FFFFFF
##2255A51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA8
Deuteranopia (green-blind)
#0052A3
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2255a5;
/* rgb */ color: rgb(34, 85, 165);
/* oklch */ color: oklch(46.1% 0.140 259.3);
Tailwind
colors: {
  custom: {
    50: '#7284c0',
    500: '#2255a5',
    950: '#000000',
  },
}
SCSS
$custom: #2255a5;
$custom-light: #7284c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a5",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 165
  },
  "hsl": {
    "h": 216.641,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46117,
    "c": 0.1403,
    "h": 259.3
  },
  "luminance": 0.09554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2255A5

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

Preview Lab → · Contrast checker → · Palette generator →

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