#2252AF#2252AF

#2252AF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.2% C 0.158 H 261.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2252AF
RGBrgb(34, 82, 175)
HSLhsl(220, 67%, 41%)
HSVhsv(220, 81%, 69%)
CMYKcmyk(80.6%, 53.1%, 0%, 31.4%)
CIE-LABlab(36.87, 18.78, -54.17)
CIE-LCHlch(36.87, 57.33, 289.12°)
OKLaboklab(46.22% -0.0224 -0.1561)
OKLCHoklch(46.22% 0.158 261.8)
XYZxyz(11.4121, 9.4685, 41.7753)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252AF #AF7F22
analogous
#2298AF #2252AF #3822AF
triadic
#2252AF #AF2252 #52AF22
tetradic
#2252AF #AF2298 #AF7F22 #22AF38
square
#2252AF #AF2298 #AF7F22 #22AF38
split-complementary
#2252AF #AF3822 #98AF22
monochromatic
#0E2249 #183A7C #2252AF #366DD8 #6992E2

Accessibility & contrast

On white

7.26
#2252AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2252AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2252AF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252AF#FFFFFF#000000##FFFFFF
##2252AF1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2252af;
/* rgb */ color: rgb(34, 82, 175);
/* oklch */ color: oklch(46.2% 0.158 261.8);
Tailwind
colors: {
  custom: {
    50: '#7482c8',
    500: '#2252af',
    950: '#000000',
  },
}
SCSS
$custom: #2252af;
$custom-light: #7482c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2252af",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 219.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46221,
    "c": 0.15774,
    "h": 261.8
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#2252AF
secondary
#C8A665
accent
#AF3DEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2252AF

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

Preview Lab → · Contrast checker → · Palette generator →

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