#2251AF#2251AF

#2251AF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.159 H 262.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2251AF
RGBrgb(34, 81, 175)
HSLhsl(220, 67%, 41%)
HSVhsv(220, 81%, 69%)
CMYKcmyk(80.6%, 53.7%, 0%, 31.4%)
CIE-LABlab(36.59, 19.44, -54.63)
CIE-LCHlch(36.59, 57.98, 289.59°)
OKLaboklab(46.01% -0.0216 -0.1575)
OKLCHoklch(46.01% 0.159 262.2)
XYZxyz(11.3372, 9.3187, 41.7503)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251AF #AF8022
analogous
#2297AF #2251AF #3922AF
triadic
#2251AF #AF2251 #51AF22
tetradic
#2251AF #AF2297 #AF8022 #22AF39
square
#2251AF #AF2297 #AF8022 #22AF39
split-complementary
#2251AF #AF3922 #97AF22
monochromatic
#0E2249 #18397C #2251AF #366CD8 #6992E2

Accessibility & contrast

On white

7.33
#2251AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2251AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251AF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251AF#FFFFFF#000000##FFFFFF
##2251AF1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045DB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2251af;
/* rgb */ color: rgb(34, 81, 175);
/* oklch */ color: oklch(46.0% 0.159 262.2);
Tailwind
colors: {
  custom: {
    50: '#7481c8',
    500: '#2251af',
    950: '#000000',
  },
}
SCSS
$custom: #2251af;
$custom-light: #7481c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2251af",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 220,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.15898,
    "h": 262.2
  },
  "luminance": 0.0932
}

Semantic roles & 50–950 ramp

primary
#2251AF
secondary
#C8A765
accent
#B13DEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2251AF

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

Preview Lab → · Contrast checker → · Palette generator →

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