#2257AA#2257AA

#2257AA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.145 H 259.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2257AA
RGBrgb(34, 87, 170)
HSLhsl(217, 67%, 40%)
HSVhsv(217, 80%, 67%)
CMYKcmyk(80%, 48.8%, 0%, 33.3%)
CIE-LABlab(37.95, 13.49, -49.47)
CIE-LCHlch(37.95, 51.28, 285.25°)
OKLaboklab(46.93% -0.0268 -0.1422)
OKLCHoklch(46.93% 0.145 259.3)
XYZxyz(11.3209, 10.0574, 39.3670)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257AA #AA7522
analogous
#229BAA #2257AA #3122AA
triadic
#2257AA #AA2257 #57AA22
tetradic
#2257AA #AA229B #AA7522 #22AA31
square
#2257AA #AA229B #AA7522 #22AA31
split-complementary
#2257AA #AA3122 #9BAA22
monochromatic
#0E2344 #183D77 #2257AA #3373D6 #6696E0

Accessibility & contrast

On white

6.97
#2257AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2257AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2257AA#FFFFFF#000000##FFFFFF
##2257AA1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2257aa;
/* rgb */ color: rgb(34, 87, 170);
/* oklch */ color: oklch(46.9% 0.145 259.3);
Tailwind
colors: {
  custom: {
    50: '#7385c4',
    500: '#2257aa',
    950: '#000000',
  },
}
SCSS
$custom: #2257aa;
$custom-light: #7385c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2257aa",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 170
  },
  "hsl": {
    "h": 216.618,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.4693,
    "c": 0.14473,
    "h": 259.3
  },
  "luminance": 0.10059
}

Semantic roles & 50–950 ramp

primary
#2257AA
secondary
#C69F62
accent
#A73EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #2257AA

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

Preview Lab → · Contrast checker → · Palette generator →

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