#2225A5#2225A5

#2225A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.196 H 270.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2225A5
RGBrgb(34, 37, 165)
HSLhsl(239, 66%, 39%)
HSVhsv(239, 79%, 65%)
CMYKcmyk(79.4%, 77.6%, 0%, 35.3%)
CIE-LABlab(24.89, 43.89, -67.81)
CIE-LCHlch(24.89, 80.78, 302.91°)
OKLaboklab(37.12% 0.0025 -0.1964)
OKLCHoklch(37.12% 0.196 270.7)
XYZxyz(8.1105, 4.3789, 36.0078)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2225A5 #A5A222
analogous
#2267A5 #2225A5 #6122A5
triadic
#2225A5 #A52225 #25A522
tetradic
#2225A5 #A52267 #A5A222 #22A561
square
#2225A5 #A52267 #A5A222 #22A561
split-complementary
#2225A5 #A56122 #67A522
monochromatic
#0D0E40 #181A72 #2225A5 #3034D4 #6365DF

Accessibility & contrast

On white

11.19
#2225A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2225A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2225A5
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2225A5#FFFFFF#000000##FFFFFF
##2225A51.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2225a5;
/* rgb */ color: rgb(34, 37, 165);
/* oklch */ color: oklch(37.1% 0.196 270.7);
Tailwind
colors: {
  custom: {
    50: '#7662c1',
    500: '#2225a5',
    950: '#000000',
  },
}
SCSS
$custom: #2225a5;
$custom-light: #7662c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2225a5",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 238.626,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3712,
    "c": 0.19639,
    "h": 270.7
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#2225A5
secondary
#C4C25F
accent
#E53FE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2225A5

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

Preview Lab → · Contrast checker → · Palette generator →

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