#2254A3#2254A3

#2254A3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.7% C 0.139 H 259.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2254A3
RGBrgb(34, 84, 163)
HSLhsl(217, 65%, 39%)
HSVhsv(217, 79%, 64%)
CMYKcmyk(79.1%, 48.5%, 0%, 36.1%)
CIE-LABlab(36.60, 12.72, -47.47)
CIE-LCHlch(36.60, 49.14, 285.00°)
OKLaboklab(45.75% -0.0255 -0.1364)
OKLCHoklch(45.75% 0.139 259.4)
XYZxyz(10.4385, 9.3238, 35.8928)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A3 #A37122
analogous
#2294A3 #2254A3 #3022A3
triadic
#2254A3 #A32254 #54A322
tetradic
#2254A3 #A32294 #A37122 #22A330
square
#2254A3 #A32294 #A37122 #22A330
split-complementary
#2254A3 #A33022 #94A322
monochromatic
#0D203E #173A70 #2254A3 #2F6FD4 #6192DE

Accessibility & contrast

On white

7.33
#2254A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2254A3
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254A3#FFFFFF#000000##FFFFFF
##2254A31.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA6
Deuteranopia (green-blind)
#0051A1
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2254a3;
/* rgb */ color: rgb(34, 84, 163);
/* oklch */ color: oklch(45.7% 0.139 259.4);
Tailwind
colors: {
  custom: {
    50: '#7183bf',
    500: '#2254a3',
    950: '#000000',
  },
}
SCSS
$custom: #2254a3;
$custom-light: #7183bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a3",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 163
  },
  "hsl": {
    "h": 216.744,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45746,
    "c": 0.13876,
    "h": 259.4
  },
  "luminance": 0.09325
}

Semantic roles & 50–950 ramp

primary
#2254A3
secondary
#C39C5E
accent
#A73FE8
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A3

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

Preview Lab → · Contrast checker → · Palette generator →

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