#2257AF#2257AF

#2257AF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.3% C 0.152 H 260.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2257AF
RGBrgb(34, 87, 175)
HSLhsl(217, 67%, 41%)
HSVhsv(217, 81%, 69%)
CMYKcmyk(80.6%, 50.3%, 0%, 31.4%)
CIE-LABlab(38.29, 15.45, -51.88)
CIE-LCHlch(38.29, 54.13, 286.59°)
OKLaboklab(47.3% -0.0261 -0.1493)
OKLCHoklch(47.3% 0.152 260.1)
XYZxyz(11.8029, 10.2502, 41.9055)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257AF #AF7A22
analogous
#229DAF #2257AF #3422AF
triadic
#2257AF #AF2257 #57AF22
tetradic
#2257AF #AF229D #AF7A22 #22AF34
square
#2257AF #AF229D #AF7A22 #22AF34
split-complementary
#2257AF #AF3422 #9DAF22
monochromatic
#0E2449 #183E7C #2257AF #3673D8 #6997E2

Accessibility & contrast

On white

6.88
#2257AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2257AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2257AF
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2257AF#FFFFFF#000000##FFFFFF
##2257AF1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2257af;
/* rgb */ color: rgb(34, 87, 175);
/* oklch */ color: oklch(47.3% 0.152 260.1);
Tailwind
colors: {
  custom: {
    50: '#7485c7',
    500: '#2257af',
    950: '#000000',
  },
}
SCSS
$custom: #2257af;
$custom-light: #7485c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2257af",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 217.447,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.15157,
    "h": 260.1
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#2257AF
secondary
#C8A365
accent
#A93DEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2257AF

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

Preview Lab → · Contrast checker → · Palette generator →

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