#2254AA#2254AA

#2254AA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.148 H 260.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2254AA
RGBrgb(34, 84, 170)
HSLhsl(218, 67%, 40%)
HSVhsv(218, 80%, 67%)
CMYKcmyk(80%, 50.6%, 0%, 33.3%)
CIE-LABlab(37.08, 15.48, -50.87)
CIE-LCHlch(37.08, 53.17, 286.92°)
OKLaboklab(46.27% -0.0245 -0.1464)
OKLCHoklch(46.27% 0.148 260.5)
XYZxyz(11.0831, 9.5817, 39.2877)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254AA #AA7822
analogous
#2298AA #2254AA #3422AA
triadic
#2254AA #AA2254 #54AA22
tetradic
#2254AA #AA2298 #AA7822 #22AA34
square
#2254AA #AA2298 #AA7822 #22AA34
split-complementary
#2254AA #AA3422 #98AA22
monochromatic
#0E2244 #183B77 #2254AA #336FD6 #6693E0

Accessibility & contrast

On white

7.20
#2254AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2254AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2254AA#FFFFFF#000000##FFFFFF
##2254AA1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2254aa;
/* rgb */ color: rgb(34, 84, 170);
/* oklch */ color: oklch(46.3% 0.148 260.5);
Tailwind
colors: {
  custom: {
    50: '#7383c4',
    500: '#2254aa',
    950: '#000000',
  },
}
SCSS
$custom: #2254aa;
$custom-light: #7383c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2254aa",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 217.941,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46268,
    "c": 0.14841,
    "h": 260.5
  },
  "luminance": 0.09583
}

Semantic roles & 50–950 ramp

primary
#2254AA
secondary
#C6A162
accent
#AB3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2254AA

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

Preview Lab → · Contrast checker → · Palette generator →

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