#2226AF#2226AF

#2226AF is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.4% C 0.207 H 270.1°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2226AF
RGBrgb(34, 38, 175)
HSLhsl(238, 67%, 41%)
HSVhsv(238, 81%, 69%)
CMYKcmyk(80.6%, 78.3%, 0%, 31.4%)
CIE-LABlab(26.22, 46.67, -71.64)
CIE-LCHlch(26.22, 85.50, 303.08°)
OKLaboklab(38.39% 0.0003 -0.2075)
OKLCHoklch(38.39% 0.207 270.1)
XYZxyz(9.0880, 4.8204, 41.0006)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226AF #AFAB22
analogous
#226CAF #2226AF #6422AF
triadic
#2226AF #AF2226 #26AF22
tetradic
#2226AF #AF226C #AFAB22 #22AF64
square
#2226AF #AF226C #AFAB22 #22AF64
split-complementary
#2226AF #AF6422 #6CAF22
monochromatic
#0E1049 #181B7C #2226AF #363BD8 #696DE2

Accessibility & contrast

On white

10.69
#2226AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2226AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226AF
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226AF#FFFFFF#000000##FFFFFF
##2226AF1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#0037AD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2226af;
/* rgb */ color: rgb(34, 38, 175);
/* oklch */ color: oklch(38.4% 0.207 270.1);
Tailwind
colors: {
  custom: {
    50: '#7863c8',
    500: '#2226af',
    950: '#000000',
  },
}
SCSS
$custom: #2226af;
$custom-light: #7863c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2226af",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 238.298,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.3839,
    "c": 0.20748,
    "h": 270.1
  },
  "luminance": 0.04821
}

Semantic roles & 50–950 ramp

primary
#2226AF
secondary
#C8C565
accent
#E53DEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2226AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2226AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva