#2252A7#2252A7

#2252A7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.147 H 260.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2252A7
RGBrgb(34, 82, 167)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 80%, 65%)
CMYKcmyk(79.6%, 50.9%, 0%, 34.5%)
CIE-LABlab(36.30, 15.63, -50.35)
CIE-LCHlch(36.30, 52.72, 287.24°)
OKLaboklab(45.6% -0.0233 -0.1449)
OKLCHoklch(45.6% 0.147 260.8)
XYZxyz(10.6495, 9.1634, 37.7592)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252A7 #A77722
analogous
#2295A7 #2252A7 #3522A7
triadic
#2252A7 #A72252 #52A722
tetradic
#2252A7 #A72295 #A77722 #22A735
square
#2252A7 #A72295 #A77722 #22A735
split-complementary
#2252A7 #A73522 #95A722
monochromatic
#0D2041 #183974 #2252A7 #316CD5 #6491DF

Accessibility & contrast

On white

7.41
#2252A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2252A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2252A7
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252A7#FFFFFF#000000##FFFFFF
##2252A71.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2252a7;
/* rgb */ color: rgb(34, 82, 167);
/* oklch */ color: oklch(45.6% 0.147 260.8);
Tailwind
colors: {
  custom: {
    50: '#7282c2',
    500: '#2252a7',
    950: '#000000',
  },
}
SCSS
$custom: #2252a7;
$custom-light: #7282c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2252a7",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 167
  },
  "hsl": {
    "h": 218.346,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45601,
    "c": 0.14676,
    "h": 260.8
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#2252A7
secondary
#C5A060
accent
#AC3FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2252A7

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

Preview Lab → · Contrast checker → · Palette generator →

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