#2257A2#2257A2

#2257A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.4% C 0.134 H 257.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2257A2
RGBrgb(34, 87, 162)
HSLhsl(215, 65%, 38%)
HSVhsv(215, 79%, 64%)
CMYKcmyk(79%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.42, 10.34, -45.56)
CIE-LCHlch(37.42, 46.72, 282.78°)
OKLaboklab(46.35% -0.0282 -0.1307)
OKLCHoklch(46.35% 0.134 257.8)
XYZxyz(10.5871, 9.7639, 35.5020)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A2 #A26D22
analogous
#2297A2 #2257A2 #2D22A2
triadic
#2257A2 #A22257 #57A222
tetradic
#2257A2 #A22297 #A26D22 #22A22D
square
#2257A2 #A22297 #A26D22 #22A22D
split-complementary
#2257A2 #A22D22 #97A222
monochromatic
#0D213D #173C6F #2257A2 #2E72D3 #6194DE

Accessibility & contrast

On white

7.11
#2257A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2257A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2257A2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257A2#FFFFFF#000000##FFFFFF
##2257A21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#1153A1
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2257a2;
/* rgb */ color: rgb(34, 87, 162);
/* oklch */ color: oklch(46.4% 0.134 257.8);
Tailwind
colors: {
  custom: {
    50: '#7185be',
    500: '#2257a2',
    950: '#000000',
  },
}
SCSS
$custom: #2257a2;
$custom-light: #7185be;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a2",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 215.156,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46352,
    "c": 0.13372,
    "h": 257.8
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#2257A2
secondary
#C3995D
accent
#A240E8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A2

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

Preview Lab → · Contrast checker → · Palette generator →

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