#2257AD#2257AD

#2257AD is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.149 H 259.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2257AD
RGBrgb(34, 87, 173)
HSLhsl(217, 67%, 41%)
HSVhsv(217, 80%, 68%)
CMYKcmyk(80.3%, 49.7%, 0%, 32.2%)
CIE-LABlab(38.15, 14.67, -50.92)
CIE-LCHlch(38.15, 52.99, 286.07°)
OKLaboklab(47.15% -0.0264 -0.1465)
OKLCHoklch(47.15% 0.149 259.8)
XYZxyz(11.6080, 10.1722, 40.8787)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257AD #AD7822
analogous
#229CAD #2257AD #3222AD
triadic
#2257AD #AD2257 #57AD22
tetradic
#2257AD #AD229C #AD7822 #22AD32
square
#2257AD #AD229C #AD7822 #22AD32
split-complementary
#2257AD #AD3222 #9CAD22
monochromatic
#0E2447 #183D7A #2257AD #3573D7 #6896E1

Accessibility & contrast

On white

6.92
#2257AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2257AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2257AD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257AD#FFFFFF#000000##FFFFFF
##2257AD1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360B0
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2257ad;
/* rgb */ color: rgb(34, 87, 173);
/* oklch */ color: oklch(47.2% 0.149 259.8);
Tailwind
colors: {
  custom: {
    50: '#7485c6',
    500: '#2257ad',
    950: '#000000',
  },
}
SCSS
$custom: #2257ad;
$custom-light: #7485c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2257ad",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 173
  },
  "hsl": {
    "h": 217.122,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47153,
    "c": 0.14884,
    "h": 259.8
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#2257AD
secondary
#C7A164
accent
#A83EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2257AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2257AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva