#2257A3#2257A3

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

Color values

HEX#2257A3
RGBrgb(34, 87, 163)
HSLhsl(215, 65%, 39%)
HSVhsv(215, 79%, 64%)
CMYKcmyk(79.1%, 46.6%, 0%, 36.1%)
CIE-LABlab(37.48, 10.73, -46.05)
CIE-LCHlch(37.48, 47.29, 283.11°)
OKLaboklab(46.42% -0.028 -0.1322)
OKLCHoklch(46.42% 0.135 258)
XYZxyz(10.6763, 9.7996, 35.9721)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A3 #A36E22
analogous
#2297A3 #2257A3 #2E22A3
triadic
#2257A3 #A32257 #57A322
tetradic
#2257A3 #A32297 #A36E22 #22A32E
square
#2257A3 #A32297 #A36E22 #22A32E
split-complementary
#2257A3 #A32E22 #97A322
monochromatic
#0D213E #173C70 #2257A3 #2F72D4 #6195DE

Accessibility & contrast

On white

7.09
#2257A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2257A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2257A3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257A3#FFFFFF#000000##FFFFFF
##2257A31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2257a3;
/* rgb */ color: rgb(34, 87, 163);
/* oklch */ color: oklch(46.4% 0.135 258.0);
Tailwind
colors: {
  custom: {
    50: '#7185bf',
    500: '#2257a3',
    950: '#000000',
  },
}
SCSS
$custom: #2257a3;
$custom-light: #7185bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a3",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 163
  },
  "hsl": {
    "h": 215.349,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46423,
    "c": 0.1351,
    "h": 258
  },
  "luminance": 0.09801
}

Semantic roles & 50–950 ramp

primary
#2257A3
secondary
#C3995E
accent
#A33FE8
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A3

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

Preview Lab → · Contrast checker → · Palette generator →

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