#2252A5#2252A5

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

Color values

HEX#2252A5
RGBrgb(34, 82, 165)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 79%, 65%)
CMYKcmyk(79.4%, 50.3%, 0%, 35.3%)
CIE-LABlab(36.16, 14.84, -49.38)
CIE-LCHlch(36.16, 51.56, 286.73°)
OKLaboklab(45.45% -0.0236 -0.142)
OKLCHoklch(45.45% 0.144 260.6)
XYZxyz(10.4660, 9.0901, 36.7930)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252A5 #A57522
analogous
#2294A5 #2252A5 #3422A5
triadic
#2252A5 #A52252 #52A522
tetradic
#2252A5 #A52294 #A57522 #22A534
square
#2252A5 #A52294 #A57522 #22A534
split-complementary
#2252A5 #A53422 #94A522
monochromatic
#0D2040 #183972 #2252A5 #306CD4 #6390DF

Accessibility & contrast

On white

7.45
#2252A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2252A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2252A5#FFFFFF#000000##FFFFFF
##2252A51.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2252a5;
/* rgb */ color: rgb(34, 82, 165);
/* oklch */ color: oklch(45.5% 0.144 260.6);
Tailwind
colors: {
  custom: {
    50: '#7282c0',
    500: '#2252a5',
    950: '#000000',
  },
}
SCSS
$custom: #2252a5;
$custom-light: #7282c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2252a5",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 165
  },
  "hsl": {
    "h": 218.015,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.144,
    "h": 260.6
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2252A5

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

Preview Lab → · Contrast checker → · Palette generator →

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