#2255A1#2255A1

#2255A1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.8% C 0.135 H 258.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2255A1
RGBrgb(34, 85, 161)
HSLhsl(216, 65%, 38%)
HSVhsv(216, 79%, 63%)
CMYKcmyk(78.9%, 47.2%, 0%, 36.9%)
CIE-LABlab(36.76, 11.26, -46.01)
CIE-LCHlch(36.76, 47.37, 283.76°)
OKLaboklab(45.83% -0.0267 -0.1321)
OKLCHoklch(45.83% 0.135 258.6)
XYZxyz(10.3389, 9.4091, 34.9825)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A1 #A16E22
analogous
#2294A1 #2255A1 #2F22A1
triadic
#2255A1 #A12255 #55A122
tetradic
#2255A1 #A12294 #A16E22 #22A12F
square
#2255A1 #A12294 #A16E22 #22A12F
split-complementary
#2255A1 #A12F22 #94A122
monochromatic
#0D203C #173A6E #2255A1 #2D70D3 #6092DD

Accessibility & contrast

On white

7.29
#2255A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2255A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A1#FFFFFF#000000##FFFFFF
##2255A11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA4
Deuteranopia (green-blind)
#09519F
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2255a1;
/* rgb */ color: rgb(34, 85, 161);
/* oklch */ color: oklch(45.8% 0.135 258.6);
Tailwind
colors: {
  custom: {
    50: '#7184bd',
    500: '#2255a1',
    950: '#000000',
  },
}
SCSS
$custom: #2255a1;
$custom-light: #7184bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a1",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 161
  },
  "hsl": {
    "h": 215.906,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.13476,
    "h": 258.6
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#2255A1
secondary
#C2995D
accent
#A440E8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2255A1

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

Preview Lab → · Contrast checker → · Palette generator →

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