#2257A4#2257A4

#2257A4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.136 H 258.2°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2257A4
RGBrgb(34, 87, 164)
HSLhsl(216, 66%, 39%)
HSVhsv(216, 79%, 64%)
CMYKcmyk(79.3%, 47%, 0%, 35.7%)
CIE-LABlab(37.55, 11.12, -46.55)
CIE-LCHlch(37.55, 47.86, 283.44°)
OKLaboklab(46.5% -0.0278 -0.1336)
OKLCHoklch(46.5% 0.136 258.2)
XYZxyz(10.7663, 9.8355, 36.4458)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A4 #A46F22
analogous
#2298A4 #2257A4 #2E22A4
triadic
#2257A4 #A42257 #57A422
tetradic
#2257A4 #A42298 #A46F22 #22A42E
square
#2257A4 #A42298 #A46F22 #22A42E
split-complementary
#2257A4 #A42E22 #98A422
monochromatic
#0D213F #173C71 #2257A4 #2F72D4 #6295DE

Accessibility & contrast

On white

7.08
#2257A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2257A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2257A4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257A4#FFFFFF#000000##FFFFFF
##2257A41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5FA7
Deuteranopia (green-blind)
#0B53A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2257a4;
/* rgb */ color: rgb(34, 87, 164);
/* oklch */ color: oklch(46.5% 0.136 258.2);
Tailwind
colors: {
  custom: {
    50: '#7285bf',
    500: '#2257a4',
    950: '#000000',
  },
}
SCSS
$custom: #2257a4;
$custom-light: #7285bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a4",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 215.538,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46495,
    "c": 0.13648,
    "h": 258.2
  },
  "luminance": 0.09837
}

Semantic roles & 50–950 ramp

primary
#2257A4
secondary
#C49A5E
accent
#A43FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A4

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

Preview Lab → · Contrast checker → · Palette generator →

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