#2254AC#2254AC

#2254AC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.4% C 0.151 H 260.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2254AC
RGBrgb(34, 84, 172)
HSLhsl(218, 67%, 40%)
HSVhsv(218, 80%, 67%)
CMYKcmyk(80.2%, 51.2%, 0%, 32.5%)
CIE-LABlab(37.22, 16.26, -51.83)
CIE-LCHlch(37.22, 54.32, 287.42°)
OKLaboklab(46.42% -0.0242 -0.1492)
OKLCHoklch(46.42% 0.151 260.8)
XYZxyz(11.2737, 9.6579, 40.2917)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254AC #AC7A22
analogous
#2299AC #2254AC #3522AC
triadic
#2254AC #AC2254 #54AC22
tetradic
#2254AC #AC2299 #AC7A22 #22AC35
square
#2254AC #AC2299 #AC7A22 #22AC35
split-complementary
#2254AC #AC3522 #99AC22
monochromatic
#0E2246 #183B79 #2254AC #346FD7 #6793E1

Accessibility & contrast

On white

7.16
#2254AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2254AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2254AC#FFFFFF#000000##FFFFFF
##2254AC1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2254ac;
/* rgb */ color: rgb(34, 84, 172);
/* oklch */ color: oklch(46.4% 0.151 260.8);
Tailwind
colors: {
  custom: {
    50: '#7483c5',
    500: '#2254ac',
    950: '#000000',
  },
}
SCSS
$custom: #2254ac;
$custom-light: #7483c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2254ac",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 218.261,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4642,
    "c": 0.15116,
    "h": 260.8
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#2254AC
secondary
#C7A363
accent
#AC3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2254AC

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

Preview Lab → · Contrast checker → · Palette generator →

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