#2251A3#2251A3

#2251A3 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.142 H 260.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2251A3
RGBrgb(34, 81, 163)
HSLhsl(218, 65%, 39%)
HSVhsv(218, 79%, 64%)
CMYKcmyk(79.1%, 50.3%, 0%, 36.1%)
CIE-LABlab(35.73, 14.72, -48.87)
CIE-LCHlch(35.73, 51.04, 286.76°)
OKLaboklab(45.08% -0.0231 -0.1406)
OKLCHoklch(45.08% 0.142 260.7)
XYZxyz(10.2106, 8.8681, 35.8168)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251A3 #A37422
analogous
#2291A3 #2251A3 #3422A3
triadic
#2251A3 #A32251 #51A322
tetradic
#2251A3 #A32291 #A37422 #22A334
square
#2251A3 #A32291 #A37422 #22A334
split-complementary
#2251A3 #A33422 #91A322
monochromatic
#0D1F3E #173870 #2251A3 #2F6BD4 #618FDE

Accessibility & contrast

On white

7.57
#2251A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2251A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251A3
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251A3#FFFFFF#000000##FFFFFF
##2251A31.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA6
Deuteranopia (green-blind)
#004EA1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2251a3;
/* rgb */ color: rgb(34, 81, 163);
/* oklch */ color: oklch(45.1% 0.142 260.7);
Tailwind
colors: {
  custom: {
    50: '#7281bf',
    500: '#2251a3',
    950: '#000000',
  },
}
SCSS
$custom: #2251a3;
$custom-light: #7281bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2251a3",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 163
  },
  "hsl": {
    "h": 218.14,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.14247,
    "h": 260.7
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#2251A3
secondary
#C39E5E
accent
#AB3FE8
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2251A3

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

Preview Lab → · Contrast checker → · Palette generator →

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