#2252A3#2252A3

#2252A3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.141 H 260.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2252A3
RGBrgb(34, 82, 163)
HSLhsl(218, 65%, 39%)
HSVhsv(218, 79%, 64%)
CMYKcmyk(79.1%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.02, 14.05, -48.41)
CIE-LCHlch(36.02, 50.40, 286.18°)
OKLaboklab(45.3% -0.0239 -0.1392)
OKLCHoklch(45.3% 0.141 260.3)
XYZxyz(10.2854, 9.0178, 35.8418)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252A3 #A37322
analogous
#2292A3 #2252A3 #3222A3
triadic
#2252A3 #A32252 #52A322
tetradic
#2252A3 #A32292 #A37322 #22A332
square
#2252A3 #A32292 #A37322 #22A332
split-complementary
#2252A3 #A33222 #92A322
monochromatic
#0D1F3E #173970 #2252A3 #2F6CD4 #6190DE

Accessibility & contrast

On white

7.49
#2252A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2252A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2252A3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252A3#FFFFFF#000000##FFFFFF
##2252A31.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2252a3;
/* rgb */ color: rgb(34, 82, 163);
/* oklch */ color: oklch(45.3% 0.141 260.3);
Tailwind
colors: {
  custom: {
    50: '#7282bf',
    500: '#2252a3',
    950: '#000000',
  },
}
SCSS
$custom: #2252a3;
$custom-light: #7282bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2252a3",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 217.674,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45299,
    "c": 0.14123,
    "h": 260.3
  },
  "luminance": 0.09019
}

Semantic roles & 50–950 ramp

primary
#2252A3
secondary
#C39D5E
accent
#AA3FE8
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2252A3

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

Preview Lab → · Contrast checker → · Palette generator →

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