#2254B4#2254B4

#2254B4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.0% C 0.162 H 261.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2254B4
RGBrgb(34, 84, 180)
HSLhsl(219, 68%, 42%)
HSVhsv(219, 81%, 71%)
CMYKcmyk(81.1%, 53.3%, 0%, 29.4%)
CIE-LABlab(37.80, 19.40, -55.62)
CIE-LCHlch(37.80, 58.91, 289.23°)
OKLaboklab(47.04% -0.0233 -0.1604)
OKLCHoklch(47.04% 0.162 261.7)
XYZxyz(12.0653, 9.9746, 44.4606)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254B4 #B48222
analogous
#229DB4 #2254B4 #3922B4
triadic
#2254B4 #B42254 #54B422
tetradic
#2254B4 #B4229D #B48222 #22B439
square
#2254B4 #B4229D #B48222 #22B439
split-complementary
#2254B4 #B43922 #9DB422
monochromatic
#0F244D #183C81 #2254B4 #3A70DA #6D96E3

Accessibility & contrast

On white

7.01
#2254B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2254B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2254B4#FFFFFF#000000##FFFFFF
##2254B41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0760B7
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2254b4;
/* rgb */ color: rgb(34, 84, 180);
/* oklch */ color: oklch(47.0% 0.162 261.7);
Tailwind
colors: {
  custom: {
    50: '#7683cb',
    500: '#2254b4',
    950: '#000000',
  },
}
SCSS
$custom: #2254b4;
$custom-light: #7683cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2254b4",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 180
  },
  "hsl": {
    "h": 219.452,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47041,
    "c": 0.16207,
    "h": 261.7
  },
  "luminance": 0.09976
}

Semantic roles & 50–950 ramp

primary
#2254B4
secondary
#CAA868
accent
#AF3DEB
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2254B4

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

Preview Lab → · Contrast checker → · Palette generator →

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