#2255A4#2255A4

#2255A4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.0% C 0.139 H 259.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2255A4
RGBrgb(34, 85, 164)
HSLhsl(216, 66%, 39%)
HSVhsv(216, 79%, 64%)
CMYKcmyk(79.3%, 48.2%, 0%, 35.7%)
CIE-LABlab(36.96, 12.45, -47.49)
CIE-LCHlch(36.96, 49.09, 284.69°)
OKLaboklab(46.04% -0.0262 -0.1364)
OKLCHoklch(46.04% 0.139 259.1)
XYZxyz(10.6066, 9.5162, 36.3926)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A4 #A47122
analogous
#2296A4 #2255A4 #3022A4
triadic
#2255A4 #A42255 #55A422
tetradic
#2255A4 #A42296 #A47122 #22A430
square
#2255A4 #A42296 #A47122 #22A430
split-complementary
#2255A4 #A43022 #96A422
monochromatic
#0D203F #173B71 #2255A4 #2F70D4 #6293DE

Accessibility & contrast

On white

7.23
#2255A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2255A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A4#FFFFFF#000000##FFFFFF
##2255A41.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2255a4;
/* rgb */ color: rgb(34, 85, 164);
/* oklch */ color: oklch(46.0% 0.139 259.1);
Tailwind
colors: {
  custom: {
    50: '#7284bf',
    500: '#2255a4',
    950: '#000000',
  },
}
SCSS
$custom: #2255a4;
$custom-light: #7284bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a4",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 164
  },
  "hsl": {
    "h": 216.462,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46044,
    "c": 0.13891,
    "h": 259.1
  },
  "luminance": 0.09517
}

Semantic roles & 50–950 ramp

primary
#2255A4
secondary
#C49C5E
accent
#A63FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2255A4

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

Preview Lab → · Contrast checker → · Palette generator →

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