#2252CA#2252CA

#2252CA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.194 H 263.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2252CA
RGBrgb(34, 82, 202)
HSLhsl(223, 71%, 46%)
HSVhsv(223, 83%, 79%)
CMYKcmyk(83.2%, 59.4%, 0%, 20.8%)
CIE-LABlab(38.96, 29.23, -66.58)
CIE-LCHlch(38.96, 72.71, 293.70°)
OKLaboklab(48.45% -0.0205 -0.1926)
OKLCHoklch(48.45% 0.194 263.9)
XYZxyz(14.3338, 10.6372, 57.1634)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252CA #CA9A22
analogous
#22A6CA #2252CA #4622CA
triadic
#2252CA #CA2252 #52CA22
tetradic
#2252CA #CA22A6 #CA9A22 #22CA46
square
#2252CA #CA22A6 #CA9A22 #22CA46
split-complementary
#2252CA #CA4622 #A6CA22
monochromatic
#102761 #193D96 #2252CA #4974E0 #7D9CE9

Accessibility & contrast

On white

6.71
#2252CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2252CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2252CA#FFFFFF#000000##FFFFFF
##2252CA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#007186
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2252ca;
/* rgb */ color: rgb(34, 82, 202);
/* oklch */ color: oklch(48.5% 0.194 263.9);
Tailwind
colors: {
  custom: {
    50: '#7b82db',
    500: '#2252ca',
    950: '#000000',
  },
}
SCSS
$custom: #2252ca;
$custom-light: #7b82db;
$custom-dark: #000000;
JSON
{
  "hex": "#2252ca",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 222.857,
    "s": 71.186,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48454,
    "c": 0.19369,
    "h": 263.9
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#2252CA
secondary
#D1B777
accent
#BA3AEE
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2252CA

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

Preview Lab → · Contrast checker → · Palette generator →

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