#2257A6#2257A6

#2257A6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.139 H 258.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2257A6
RGBrgb(34, 87, 166)
HSLhsl(216, 66%, 39%)
HSVhsv(216, 80%, 65%)
CMYKcmyk(79.5%, 47.6%, 0%, 34.9%)
CIE-LABlab(37.68, 11.91, -47.52)
CIE-LCHlch(37.68, 48.99, 284.07°)
OKLaboklab(46.64% -0.0275 -0.1365)
OKLCHoklch(46.64% 0.139 258.6)
XYZxyz(10.9483, 9.9084, 37.4045)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A6 #A67122
analogous
#2299A6 #2257A6 #2F22A6
triadic
#2257A6 #A62257 #57A622
tetradic
#2257A6 #A62299 #A67122 #22A62F
square
#2257A6 #A62299 #A67122 #22A62F
split-complementary
#2257A6 #A62F22 #99A622
monochromatic
#0D2240 #183C73 #2257A6 #3072D5 #6395DF

Accessibility & contrast

On white

7.04
#2257A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2257A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2257A6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257A6#FFFFFF#000000##FFFFFF
##2257A61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FA9
Deuteranopia (green-blind)
#0353A4
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2257a6;
/* rgb */ color: rgb(34, 87, 166);
/* oklch */ color: oklch(46.6% 0.139 258.6);
Tailwind
colors: {
  custom: {
    50: '#7285c1',
    500: '#2257a6',
    950: '#000000',
  },
}
SCSS
$custom: #2257a6;
$custom-light: #7285c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a6",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 166
  },
  "hsl": {
    "h": 215.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46639,
    "c": 0.13923,
    "h": 258.6
  },
  "luminance": 0.0991
}

Semantic roles & 50–950 ramp

primary
#2257A6
secondary
#C49C5F
accent
#A53FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A6

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

Preview Lab → · Contrast checker → · Palette generator →

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