#2257B3#2257B3

#2257B3 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.157 H 260.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2257B3
RGBrgb(34, 87, 179)
HSLhsl(218, 68%, 42%)
HSVhsv(218, 81%, 70%)
CMYKcmyk(81%, 51.4%, 0%, 29.8%)
CIE-LABlab(38.57, 17.02, -53.79)
CIE-LCHlch(38.57, 56.42, 287.56°)
OKLaboklab(47.61% -0.0255 -0.1549)
OKLCHoklch(47.61% 0.157 260.6)
XYZxyz(12.2016, 10.4097, 44.0053)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257B3 #B37E22
analogous
#22A0B3 #2257B3 #3622B3
triadic
#2257B3 #B32257 #57B322
tetradic
#2257B3 #B322A0 #B37E22 #22B336
square
#2257B3 #B322A0 #B37E22 #22B336
split-complementary
#2257B3 #B33622 #A0B322
monochromatic
#0E254C #183E80 #2257B3 #3974D9 #6C98E3

Accessibility & contrast

On white

6.81
#2257B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2257B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2257B3
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257B3#FFFFFF#000000##FFFFFF
##2257B31.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B6
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2257b3;
/* rgb */ color: rgb(34, 87, 179);
/* oklch */ color: oklch(47.6% 0.157 260.6);
Tailwind
colors: {
  custom: {
    50: '#7585ca',
    500: '#2257b3',
    950: '#000000',
  },
}
SCSS
$custom: #2257b3;
$custom-light: #7585ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2257b3",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 218.069,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47606,
    "c": 0.15701,
    "h": 260.6
  },
  "luminance": 0.10411
}

Semantic roles & 50–950 ramp

primary
#2257B3
secondary
#C9A668
accent
#AB3DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2257B3

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

Preview Lab → · Contrast checker → · Palette generator →

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