#2254A4#2254A4

#2254A4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.8% C 0.140 H 259.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2254A4
RGBrgb(34, 84, 164)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 79%, 64%)
CMYKcmyk(79.3%, 48.8%, 0%, 35.7%)
CIE-LABlab(36.67, 13.11, -47.96)
CIE-LCHlch(36.67, 49.72, 285.29°)
OKLaboklab(45.82% -0.0254 -0.1378)
OKLCHoklch(45.82% 0.14 259.6)
XYZxyz(10.5284, 9.3598, 36.3665)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A4 #A47222
analogous
#2295A4 #2254A4 #3122A4
triadic
#2254A4 #A42254 #54A422
tetradic
#2254A4 #A42295 #A47222 #22A431
square
#2254A4 #A42295 #A47222 #22A431
split-complementary
#2254A4 #A43122 #95A422
monochromatic
#0D203F #173A71 #2254A4 #2F6FD4 #6292DE

Accessibility & contrast

On white

7.31
#2254A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2254A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2254A4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254A4#FFFFFF#000000##FFFFFF
##2254A41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2254a4;
/* rgb */ color: rgb(34, 84, 164);
/* oklch */ color: oklch(45.8% 0.140 259.6);
Tailwind
colors: {
  custom: {
    50: '#7283bf',
    500: '#2254a4',
    950: '#000000',
  },
}
SCSS
$custom: #2254a4;
$custom-light: #7283bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a4",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 164
  },
  "hsl": {
    "h": 216.923,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45819,
    "c": 0.14014,
    "h": 259.6
  },
  "luminance": 0.09361
}

Semantic roles & 50–950 ramp

primary
#2254A4
secondary
#C49D5E
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A4

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

Preview Lab → · Contrast checker → · Palette generator →

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