#2252AA#2252AA

#2252AA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.151 H 261.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2252AA
RGBrgb(34, 82, 170)
HSLhsl(219, 67%, 40%)
HSVhsv(219, 80%, 67%)
CMYKcmyk(80%, 51.8%, 0%, 33.3%)
CIE-LABlab(36.51, 16.81, -51.79)
CIE-LCHlch(36.51, 54.45, 287.98°)
OKLaboklab(45.83% -0.023 -0.1491)
OKLCHoklch(45.83% 0.151 261.2)
XYZxyz(10.9301, 9.2757, 39.2367)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252AA #AA7A22
analogous
#2296AA #2252AA #3622AA
triadic
#2252AA #AA2252 #52AA22
tetradic
#2252AA #AA2296 #AA7A22 #22AA36
square
#2252AA #AA2296 #AA7A22 #22AA36
split-complementary
#2252AA #AA3622 #96AA22
monochromatic
#0E2144 #183977 #2252AA #336DD6 #6691E0

Accessibility & contrast

On white

7.35
#2252AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2252AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2252AA#FFFFFF#000000##FFFFFF
##2252AA1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185CAD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2252aa;
/* rgb */ color: rgb(34, 82, 170);
/* oklch */ color: oklch(45.8% 0.151 261.2);
Tailwind
colors: {
  custom: {
    50: '#7382c4',
    500: '#2252aa',
    950: '#000000',
  },
}
SCSS
$custom: #2252aa;
$custom-light: #7382c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2252aa",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 218.824,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.1509,
    "h": 261.2
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#2252AA
secondary
#C6A362
accent
#AD3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2252AA

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

Preview Lab → · Contrast checker → · Palette generator →

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