#2257AC#2257AC

#2257AC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.147 H 259.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2257AC
RGBrgb(34, 87, 172)
HSLhsl(217, 67%, 40%)
HSVhsv(217, 80%, 67%)
CMYKcmyk(80.2%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.08, 14.27, -50.44)
CIE-LCHlch(38.08, 52.42, 285.80°)
OKLaboklab(47.08% -0.0265 -0.1451)
OKLCHoklch(47.08% 0.147 259.6)
XYZxyz(11.5116, 10.1337, 40.3710)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257AC #AC7722
analogous
#229CAC #2257AC #3222AC
triadic
#2257AC #AC2257 #57AC22
tetradic
#2257AC #AC229C #AC7722 #22AC32
square
#2257AC #AC229C #AC7722 #22AC32
split-complementary
#2257AC #AC3222 #9CAC22
monochromatic
#0E2346 #183D79 #2257AC #3473D7 #6796E1

Accessibility & contrast

On white

6.94
#2257AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2257AC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257AC#FFFFFF#000000##FFFFFF
##2257AC1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2257ac;
/* rgb */ color: rgb(34, 87, 172);
/* oklch */ color: oklch(47.1% 0.147 259.6);
Tailwind
colors: {
  custom: {
    50: '#7385c5',
    500: '#2257ac',
    950: '#000000',
  },
}
SCSS
$custom: #2257ac;
$custom-light: #7385c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2257ac",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 216.957,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47078,
    "c": 0.14747,
    "h": 259.6
  },
  "luminance": 0.10135
}

Semantic roles & 50–950 ramp

primary
#2257AC
secondary
#C7A063
accent
#A83EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #2257AC

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

Preview Lab → · Contrast checker → · Palette generator →

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