#2254A6#2254A6

#2254A6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.143 H 259.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2254A6
RGBrgb(34, 84, 166)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 80%, 65%)
CMYKcmyk(79.5%, 49.4%, 0%, 34.9%)
CIE-LABlab(36.80, 13.90, -48.93)
CIE-LCHlch(36.80, 50.87, 285.86°)
OKLaboklab(45.97% -0.0251 -0.1407)
OKLCHoklch(45.97% 0.143 259.9)
XYZxyz(10.7104, 9.4326, 37.3252)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254A6 #A67422
analogous
#2296A6 #2254A6 #3222A6
triadic
#2254A6 #A62254 #54A622
tetradic
#2254A6 #A62296 #A67422 #22A632
square
#2254A6 #A62296 #A67422 #22A632
split-complementary
#2254A6 #A63222 #96A622
monochromatic
#0D2140 #183A73 #2254A6 #306FD5 #6392DF

Accessibility & contrast

On white

7.27
#2254A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2254A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2254A6#FFFFFF#000000##FFFFFF
##2254A61.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DA9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2254a6;
/* rgb */ color: rgb(34, 84, 166);
/* oklch */ color: oklch(46.0% 0.143 259.9);
Tailwind
colors: {
  custom: {
    50: '#7283c1',
    500: '#2254a6',
    950: '#000000',
  },
}
SCSS
$custom: #2254a6;
$custom-light: #7283c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2254a6",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 217.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.14291,
    "h": 259.9
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#2254A6
secondary
#C49E5F
accent
#A93FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2254A6

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

Preview Lab → · Contrast checker → · Palette generator →

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