#2257A8#2257A8

#2257A8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.142 H 259.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2257A8
RGBrgb(34, 87, 168)
HSLhsl(216, 66%, 40%)
HSVhsv(216, 80%, 66%)
CMYKcmyk(79.8%, 48.2%, 0%, 34.1%)
CIE-LABlab(37.81, 12.70, -48.50)
CIE-LCHlch(37.81, 50.13, 284.67°)
OKLaboklab(46.78% -0.0272 -0.1394)
OKLCHoklch(46.78% 0.142 259)
XYZxyz(11.1332, 9.9823, 38.3782)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A8 #A87322
analogous
#229AA8 #2257A8 #3022A8
triadic
#2257A8 #A82257 #57A822
tetradic
#2257A8 #A8229A #A87322 #22A830
square
#2257A8 #A8229A #A87322 #22A830
split-complementary
#2257A8 #A83022 #9AA822
monochromatic
#0D2242 #183D75 #2257A8 #3272D5 #6595E0

Accessibility & contrast

On white

7.01
#2257A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2257A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2257A8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257A8#FFFFFF#000000##FFFFFF
##2257A81.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2257a8;
/* rgb */ color: rgb(34, 87, 168);
/* oklch */ color: oklch(46.8% 0.142 259.0);
Tailwind
colors: {
  custom: {
    50: '#7385c2',
    500: '#2257a8',
    950: '#000000',
  },
}
SCSS
$custom: #2257a8;
$custom-light: #7385c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a8",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 168
  },
  "hsl": {
    "h": 216.269,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46784,
    "c": 0.14198,
    "h": 259
  },
  "luminance": 0.09984
}

Semantic roles & 50–950 ramp

primary
#2257A8
secondary
#C59D61
accent
#A63FE9
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A8

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

Preview Lab → · Contrast checker → · Palette generator →

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