#2225A7#2225A7

#2225A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.199 H 270.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2225A7
RGBrgb(34, 37, 167)
HSLhsl(239, 66%, 39%)
HSVhsv(239, 80%, 65%)
CMYKcmyk(79.6%, 77.8%, 0%, 34.5%)
CIE-LABlab(25.11, 44.56, -68.65)
CIE-LCHlch(25.11, 81.84, 302.99°)
OKLaboklab(37.35% 0.0021 -0.1988)
OKLCHoklch(37.35% 0.199 270.6)
XYZxyz(8.2939, 4.4523, 36.9740)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2225A7 #A7A422
analogous
#2267A7 #2225A7 #6222A7
triadic
#2225A7 #A72225 #25A722
tetradic
#2225A7 #A72267 #A7A422 #22A762
square
#2225A7 #A72267 #A7A422 #22A762
split-complementary
#2225A7 #A76222 #67A722
monochromatic
#0D0E41 #181A74 #2225A7 #3135D5 #6467DF

Accessibility & contrast

On white

11.11
#2225A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2225A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2225A7
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2225A7#FFFFFF#000000##FFFFFF
##2225A71.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2225a7;
/* rgb */ color: rgb(34, 37, 167);
/* oklch */ color: oklch(37.3% 0.199 270.6);
Tailwind
colors: {
  custom: {
    50: '#7662c2',
    500: '#2225a7',
    950: '#000000',
  },
}
SCSS
$custom: #2225a7;
$custom-light: #7662c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2225a7",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 238.647,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37347,
    "c": 0.1988,
    "h": 270.6
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#2225A7
secondary
#C5C260
accent
#E53FE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2225A7

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

Preview Lab → · Contrast checker → · Palette generator →

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