#2252A6#2252A6

#2252A6 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.145 H 260.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2252A6
RGBrgb(34, 82, 166)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 80%, 65%)
CMYKcmyk(79.5%, 50.6%, 0%, 34.9%)
CIE-LABlab(36.23, 15.23, -49.86)
CIE-LCHlch(36.23, 52.14, 286.99°)
OKLaboklab(45.53% -0.0235 -0.1435)
OKLCHoklch(45.53% 0.145 260.7)
XYZxyz(10.5574, 9.1266, 37.2742)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252A6 #A67622
analogous
#2294A6 #2252A6 #3422A6
triadic
#2252A6 #A62252 #52A622
tetradic
#2252A6 #A62294 #A67622 #22A634
square
#2252A6 #A62294 #A67622 #22A634
split-complementary
#2252A6 #A63422 #94A622
monochromatic
#0D2040 #183973 #2252A6 #306CD5 #6390DF

Accessibility & contrast

On white

7.43
#2252A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2252A6
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252A6#FFFFFF#000000##FFFFFF
##2252A61.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CA9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2252a6;
/* rgb */ color: rgb(34, 82, 166);
/* oklch */ color: oklch(45.5% 0.145 260.7);
Tailwind
colors: {
  custom: {
    50: '#7282c1',
    500: '#2252a6',
    950: '#000000',
  },
}
SCSS
$custom: #2252a6;
$custom-light: #7282c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2252a6",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 218.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45525,
    "c": 0.14538,
    "h": 260.7
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#2252A6
secondary
#C4A05F
accent
#AB3FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2252A6

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

Preview Lab → · Contrast checker → · Palette generator →

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