#2255B4#2255B4

#2255B4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.3% C 0.161 H 261.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2255B4
RGBrgb(34, 85, 180)
HSLhsl(219, 68%, 42%)
HSVhsv(219, 81%, 71%)
CMYKcmyk(81.1%, 52.8%, 0%, 29.4%)
CIE-LABlab(38.08, 18.74, -55.17)
CIE-LCHlch(38.08, 58.27, 288.76°)
OKLaboklab(47.25% -0.024 -0.159)
OKLCHoklch(47.25% 0.161 261.4)
XYZxyz(12.1434, 10.1309, 44.4866)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255B4 #B48122
analogous
#229EB4 #2255B4 #3822B4
triadic
#2255B4 #B42255 #55B422
tetradic
#2255B4 #B4229E #B48122 #22B438
square
#2255B4 #B4229E #B48122 #22B438
split-complementary
#2255B4 #B43822 #9EB422
monochromatic
#0F244D #183D81 #2255B4 #3A71DA #6D96E3

Accessibility & contrast

On white

6.94
#2255B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2255B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2255B4
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255B4#FFFFFF#000000##FFFFFF
##2255B41.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B7
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2255b4;
/* rgb */ color: rgb(34, 85, 180);
/* oklch */ color: oklch(47.3% 0.161 261.4);
Tailwind
colors: {
  custom: {
    50: '#7684cb',
    500: '#2255b4',
    950: '#000000',
  },
}
SCSS
$custom: #2255b4;
$custom-light: #7684cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2255b4",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 180
  },
  "hsl": {
    "h": 219.041,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47254,
    "c": 0.16083,
    "h": 261.4
  },
  "luminance": 0.10132
}

Semantic roles & 50–950 ramp

primary
#2255B4
secondary
#CAA868
accent
#AE3DEB
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2255B4

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

Preview Lab → · Contrast checker → · Palette generator →

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