#2251A2#2251A2

#2251A2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.141 H 260.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2251A2
RGBrgb(34, 81, 162)
HSLhsl(218, 65%, 38%)
HSVhsv(218, 79%, 64%)
CMYKcmyk(79%, 50%, 0%, 36.5%)
CIE-LABlab(35.66, 14.32, -48.39)
CIE-LCHlch(35.66, 50.46, 286.49°)
OKLaboklab(45% -0.0233 -0.1391)
OKLCHoklch(45% 0.141 260.5)
XYZxyz(10.1213, 8.8324, 35.3468)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251A2 #A27322
analogous
#2291A2 #2251A2 #3322A2
triadic
#2251A2 #A22251 #51A222
tetradic
#2251A2 #A22291 #A27322 #22A233
square
#2251A2 #A22291 #A27322 #22A233
split-complementary
#2251A2 #A23322 #91A222
monochromatic
#0D1E3D #17386F #2251A2 #2E6BD3 #618FDE

Accessibility & contrast

On white

7.59
#2251A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2251A2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251A2#FFFFFF#000000##FFFFFF
##2251A21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2251a2;
/* rgb */ color: rgb(34, 81, 162);
/* oklch */ color: oklch(45.0% 0.141 260.5);
Tailwind
colors: {
  custom: {
    50: '#7181be',
    500: '#2251a2',
    950: '#000000',
  },
}
SCSS
$custom: #2251a2;
$custom-light: #7181be;
$custom-dark: #000000;
JSON
{
  "hex": "#2251a2",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 217.969,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45002,
    "c": 0.14108,
    "h": 260.5
  },
  "luminance": 0.08834
}

Semantic roles & 50–950 ramp

primary
#2251A2
secondary
#C39D5D
accent
#AA40E8
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2251A2

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

Preview Lab → · Contrast checker → · Palette generator →

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