#2257BB#2257BB

#2257BB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.168 H 261.6°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#2257BB
RGBrgb(34, 87, 187)
HSLhsl(219, 69%, 43%)
HSVhsv(219, 82%, 73%)
CMYKcmyk(81.8%, 53.5%, 0%, 26.7%)
CIE-LABlab(39.14, 20.15, -57.55)
CIE-LCHlch(39.14, 60.98, 289.30°)
OKLaboklab(48.23% -0.0246 -0.166)
OKLCHoklch(48.23% 0.168 261.6)
XYZxyz(13.0343, 10.7427, 48.3907)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257BB #BB8622
analogous
#22A3BB #2257BB #3A22BB
triadic
#2257BB #BB2257 #57BB22
tetradic
#2257BB #BB22A3 #BB8622 #22BB3A
square
#2257BB #BB22A3 #BB8622 #22BB3A
split-complementary
#2257BB #BB3A22 #A3BB22
monochromatic
#0F2753 #193F87 #2257BB #3E75DC #729AE5

Accessibility & contrast

On white

6.67
#2257BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2257BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2257BB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257BB#FFFFFF#000000##FFFFFF
##2257BB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0363BF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2257bb;
/* rgb */ color: rgb(34, 87, 187);
/* oklch */ color: oklch(48.2% 0.168 261.6);
Tailwind
colors: {
  custom: {
    50: '#7785d0',
    500: '#2257bb',
    950: '#000000',
  },
}
SCSS
$custom: #2257bb;
$custom-light: #7785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2257bb",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 219.216,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48227,
    "c": 0.16781,
    "h": 261.6
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#2257BB
secondary
#CCAB6D
accent
#AF3CEC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2257BB

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

Preview Lab → · Contrast checker → · Palette generator →

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