#2254C2#2254C2

#2254C2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.181 H 263.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#2254C2
RGBrgb(34, 84, 194)
HSLhsl(221, 70%, 45%)
HSVhsv(221, 82%, 76%)
CMYKcmyk(82.5%, 56.7%, 0%, 23.9%)
CIE-LABlab(38.85, 24.85, -62.11)
CIE-LCHlch(38.85, 66.90, 291.81°)
OKLaboklab(48.17% -0.0221 -0.1794)
OKLCHoklch(48.17% 0.181 263)
XYZxyz(13.5641, 10.5741, 52.3546)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254C2 #C29022
analogous
#22A4C2 #2254C2 #4022C2
triadic
#2254C2 #C22254 #54C222
tetradic
#2254C2 #C222A4 #C29022 #22C240
square
#2254C2 #C222A4 #C29022 #22C240
split-complementary
#2254C2 #C24022 #A4C222
monochromatic
#10275A #193D8E #2254C2 #4374DE #779AE7

Accessibility & contrast

On white

6.74
#2254C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2254C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2254C2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254C2#FFFFFF#000000##FFFFFF
##2254C21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2254c2;
/* rgb */ color: rgb(34, 84, 194);
/* oklch */ color: oklch(48.2% 0.181 263.0);
Tailwind
colors: {
  custom: {
    50: '#7983d5',
    500: '#2254c2',
    950: '#000000',
  },
}
SCSS
$custom: #2254c2;
$custom-light: #7983d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2254c2",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 221.25,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48174,
    "c": 0.1808,
    "h": 263
  },
  "luminance": 0.10576
}

Semantic roles & 50–950 ramp

primary
#2254C2
secondary
#CFB171
accent
#B53BED
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2254C2

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

Preview Lab → · Contrast checker → · Palette generator →

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