#2254A5#2254A5

#2254A5 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.9% C 0.142 H 259.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2254A5
RGBrgb(34, 84, 165)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 79%, 65%)
CMYKcmyk(79.4%, 49.1%, 0%, 35.3%)
CIE-LABlab(36.74, 13.51, -48.44)
CIE-LCHlch(36.74, 50.29, 285.58°)
OKLaboklab(45.89% -0.0252 -0.1393)
OKLCHoklch(45.89% 0.142 259.7)
XYZxyz(10.6191, 9.3961, 36.8440)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A5 #A57322
analogous
#2296A5 #2254A5 #3222A5
triadic
#2254A5 #A52254 #54A522
tetradic
#2254A5 #A52296 #A57322 #22A532
square
#2254A5 #A52296 #A57322 #22A532
split-complementary
#2254A5 #A53222 #96A522
monochromatic
#0D2040 #183A72 #2254A5 #306FD4 #6392DF

Accessibility & contrast

On white

7.29
#2254A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2254A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2254A5
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254A5#FFFFFF#000000##FFFFFF
##2254A51.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)
#255DA8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2254a5;
/* rgb */ color: rgb(34, 84, 165);
/* oklch */ color: oklch(45.9% 0.142 259.7);
Tailwind
colors: {
  custom: {
    50: '#7283c0',
    500: '#2254a5',
    950: '#000000',
  },
}
SCSS
$custom: #2254a5;
$custom-light: #7283c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a5",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 165
  },
  "hsl": {
    "h": 217.099,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.14153,
    "h": 259.7
  },
  "luminance": 0.09397
}

Semantic roles & 50–950 ramp

primary
#2254A5
secondary
#C49D5F
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A5

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

Preview Lab → · Contrast checker → · Palette generator →

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