#2254B1#2254B1

#2254B1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.158 H 261.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2254B1
RGBrgb(34, 84, 177)
HSLhsl(219, 68%, 41%)
HSVhsv(219, 81%, 69%)
CMYKcmyk(80.8%, 52.5%, 0%, 30.6%)
CIE-LABlab(37.58, 18.23, -54.21)
CIE-LCHlch(37.58, 57.19, 288.59°)
OKLaboklab(46.81% -0.0236 -0.1562)
OKLCHoklch(46.81% 0.158 261.4)
XYZxyz(11.7630, 9.8536, 42.8684)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254B1 #B17F22
analogous
#229CB1 #2254B1 #3822B1
triadic
#2254B1 #B12254 #54B122
tetradic
#2254B1 #B1229C #B17F22 #22B138
square
#2254B1 #B1229C #B17F22 #22B138
split-complementary
#2254B1 #B13822 #9CB122
monochromatic
#0E234A #183C7E #2254B1 #3870D9 #6B95E3

Accessibility & contrast

On white

7.07
#2254B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2254B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2254B1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254B1#FFFFFF#000000##FFFFFF
##2254B11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115FB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2254b1;
/* rgb */ color: rgb(34, 84, 177);
/* oklch */ color: oklch(46.8% 0.158 261.4);
Tailwind
colors: {
  custom: {
    50: '#7583c9',
    500: '#2254b1',
    950: '#000000',
  },
}
SCSS
$custom: #2254b1;
$custom-light: #7583c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2254b1",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 177
  },
  "hsl": {
    "h": 219.021,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.15799,
    "h": 261.4
  },
  "luminance": 0.09855
}

Semantic roles & 50–950 ramp

primary
#2254B1
secondary
#C9A666
accent
#AE3DEB
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2254B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2254B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva