#2254AB#2254AB

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

Color values

HEX#2254AB
RGBrgb(34, 84, 171)
HSLhsl(218, 67%, 40%)
HSVhsv(218, 80%, 67%)
CMYKcmyk(80.1%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.15, 15.87, -51.35)
CIE-LCHlch(37.15, 53.74, 287.18°)
OKLaboklab(46.34% -0.0243 -0.1478)
OKLCHoklch(46.34% 0.15 260.6)
XYZxyz(11.1780, 9.6197, 39.7878)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254AB #AB7922
analogous
#2298AB #2254AB #3422AB
triadic
#2254AB #AB2254 #54AB22
tetradic
#2254AB #AB2298 #AB7922 #22AB34
square
#2254AB #AB2298 #AB7922 #22AB34
split-complementary
#2254AB #AB3422 #98AB22
monochromatic
#0E2245 #183B78 #2254AB #346FD7 #6793E1

Accessibility & contrast

On white

7.18
#2254AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2254AB#FFFFFF#000000##FFFFFF
##2254AB1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAE
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2254ab;
/* rgb */ color: rgb(34, 84, 171);
/* oklch */ color: oklch(46.3% 0.150 260.6);
Tailwind
colors: {
  custom: {
    50: '#7383c5',
    500: '#2254ab',
    950: '#000000',
  },
}
SCSS
$custom: #2254ab;
$custom-light: #7383c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2254ab",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 218.102,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46344,
    "c": 0.14979,
    "h": 260.6
  },
  "luminance": 0.09621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2254AB

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

Preview Lab → · Contrast checker → · Palette generator →

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