#2254A8#2254A8

#2254A8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.1% C 0.146 H 260.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2254A8
RGBrgb(34, 84, 168)
HSLhsl(218, 66%, 40%)
HSVhsv(218, 80%, 66%)
CMYKcmyk(79.8%, 50%, 0%, 34.1%)
CIE-LABlab(36.94, 14.69, -49.90)
CIE-LCHlch(36.94, 52.02, 286.40°)
OKLaboklab(46.12% -0.0248 -0.1435)
OKLCHoklch(46.12% 0.146 260.2)
XYZxyz(10.8953, 9.5066, 38.2989)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A8 #A87622
analogous
#2297A8 #2254A8 #3322A8
triadic
#2254A8 #A82254 #54A822
tetradic
#2254A8 #A82297 #A87622 #22A833
square
#2254A8 #A82297 #A87622 #22A833
split-complementary
#2254A8 #A83322 #97A822
monochromatic
#0D2142 #183B75 #2254A8 #326FD5 #6593E0

Accessibility & contrast

On white

7.24
#2254A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2254A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2254A8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254A8#FFFFFF#000000##FFFFFF
##2254A81.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006876
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2254a8;
/* rgb */ color: rgb(34, 84, 168);
/* oklch */ color: oklch(46.1% 0.146 260.2);
Tailwind
colors: {
  custom: {
    50: '#7383c2',
    500: '#2254a8',
    950: '#000000',
  },
}
SCSS
$custom: #2254a8;
$custom-light: #7383c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a8",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 168
  },
  "hsl": {
    "h": 217.612,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46117,
    "c": 0.14566,
    "h": 260.2
  },
  "luminance": 0.09508
}

Semantic roles & 50–950 ramp

primary
#2254A8
secondary
#C5A061
accent
#AA3FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A8

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

Preview Lab → · Contrast checker → · Palette generator →

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