#2252A0#2252A0

#2252A0 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.137 H 259.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2252A0
RGBrgb(34, 82, 160)
HSLhsl(217, 65%, 38%)
HSVhsv(217, 79%, 63%)
CMYKcmyk(78.8%, 48.8%, 0%, 37.3%)
CIE-LABlab(35.81, 12.86, -46.94)
CIE-LCHlch(35.81, 48.67, 285.33°)
OKLaboklab(45.08% -0.0244 -0.1349)
OKLCHoklch(45.08% 0.137 259.8)
XYZxyz(10.0198, 8.9116, 34.4429)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252A0 #A07022
analogous
#2291A0 #2252A0 #3122A0
triadic
#2252A0 #A02252 #52A022
tetradic
#2252A0 #A02291 #A07022 #22A031
square
#2252A0 #A02291 #A07022 #22A031
split-complementary
#2252A0 #A03122 #91A022
monochromatic
#0D1E3B #17386E #2252A0 #2D6CD2 #5F8FDD

Accessibility & contrast

On white

7.55
#2252A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2252A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2252A0#FFFFFF#000000##FFFFFF
##2252A01.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA3
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2252a0;
/* rgb */ color: rgb(34, 82, 160);
/* oklch */ color: oklch(45.1% 0.137 259.8);
Tailwind
colors: {
  custom: {
    50: '#7182bd',
    500: '#2252a0',
    950: '#000000',
  },
}
SCSS
$custom: #2252a0;
$custom-light: #7182bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2252a0",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 160
  },
  "hsl": {
    "h": 217.143,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45076,
    "c": 0.13706,
    "h": 259.8
  },
  "luminance": 0.08913
}

Semantic roles & 50–950 ramp

primary
#2252A0
secondary
#C29B5C
accent
#A840E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2252A0

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

Preview Lab → · Contrast checker → · Palette generator →

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