#2254A2#2254A2

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

Color values

HEX#2254A2
RGBrgb(34, 84, 162)
HSLhsl(217, 65%, 38%)
HSVhsv(217, 79%, 64%)
CMYKcmyk(79%, 48.1%, 0%, 36.5%)
CIE-LABlab(36.53, 12.32, -46.98)
CIE-LCHlch(36.53, 48.57, 284.70°)
OKLaboklab(45.67% -0.0257 -0.1349)
OKLCHoklch(45.67% 0.137 259.2)
XYZxyz(10.3492, 9.2882, 35.4228)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A2 #A27022
analogous
#2294A2 #2254A2 #3022A2
triadic
#2254A2 #A22254 #54A222
tetradic
#2254A2 #A22294 #A27022 #22A230
square
#2254A2 #A22294 #A27022 #22A230
split-complementary
#2254A2 #A23022 #94A222
monochromatic
#0D203D #173A6F #2254A2 #2E6FD3 #6192DE

Accessibility & contrast

On white

7.35
#2254A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2254A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2254A2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254A2#FFFFFF#000000##FFFFFF
##2254A21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2254a2;
/* rgb */ color: rgb(34, 84, 162);
/* oklch */ color: oklch(45.7% 0.137 259.2);
Tailwind
colors: {
  custom: {
    50: '#7183be',
    500: '#2254a2',
    950: '#000000',
  },
}
SCSS
$custom: #2254a2;
$custom-light: #7183be;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a2",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 216.563,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.13737,
    "h": 259.2
  },
  "luminance": 0.09289
}

Semantic roles & 50–950 ramp

primary
#2254A2
secondary
#C39B5D
accent
#A640E8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A2

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

Preview Lab → · Contrast checker → · Palette generator →

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