#2257A9#2257A9

#2257A9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.9% C 0.143 H 259.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2257A9
RGBrgb(34, 87, 169)
HSLhsl(216, 67%, 40%)
HSVhsv(216, 80%, 66%)
CMYKcmyk(79.9%, 48.5%, 0%, 33.7%)
CIE-LABlab(37.88, 13.09, -48.99)
CIE-LCHlch(37.88, 50.71, 284.96°)
OKLaboklab(46.86% -0.027 -0.1408)
OKLCHoklch(46.86% 0.143 259.1)
XYZxyz(11.2267, 10.0197, 38.8707)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2257A9 #A97422
analogous
#229BA9 #2257A9 #3022A9
triadic
#2257A9 #A92257 #57A922
tetradic
#2257A9 #A9229B #A97422 #22A930
square
#2257A9 #A9229B #A97422 #22A930
split-complementary
#2257A9 #A93022 #9BA922
monochromatic
#0D2343 #183D76 #2257A9 #3273D6 #6596E0

Accessibility & contrast

On white

6.99
#2257A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2257A9#FFFFFF#000000##FFFFFF
##2257A91.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AC
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2257a9;
/* rgb */ color: rgb(34, 87, 169);
/* oklch */ color: oklch(46.9% 0.143 259.1);
Tailwind
colors: {
  custom: {
    50: '#7385c3',
    500: '#2257a9',
    950: '#000000',
  },
}
SCSS
$custom: #2257a9;
$custom-light: #7385c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2257a9",
  "rgb": {
    "r": 34,
    "g": 87,
    "b": 169
  },
  "hsl": {
    "h": 216.444,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46857,
    "c": 0.14335,
    "h": 259.1
  },
  "luminance": 0.10021
}

Semantic roles & 50–950 ramp

primary
#2257A9
secondary
#C59E61
accent
#A63EE9
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2257A9

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

Preview Lab → · Contrast checker → · Palette generator →

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