#2226B0#2226B0

#2226B0 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.5% C 0.209 H 270.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2226B0
RGBrgb(34, 38, 176)
HSLhsl(238, 68%, 41%)
HSVhsv(238, 81%, 69%)
CMYKcmyk(80.7%, 78.4%, 0%, 31%)
CIE-LABlab(26.33, 47.00, -72.05)
CIE-LCHlch(26.33, 86.02, 303.12°)
OKLaboklab(38.5% 0.0001 -0.2087)
OKLCHoklch(38.5% 0.209 270)
XYZxyz(9.1866, 4.8598, 41.5197)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2226B0 #B0AC22
analogous
#226DB0 #2226B0 #6522B0
triadic
#2226B0 #B02226 #26B022
tetradic
#2226B0 #B0226D #B0AC22 #22B065
square
#2226B0 #B0226D #B0AC22 #22B065
split-complementary
#2226B0 #B06522 #6DB022
monochromatic
#0E1049 #181B7D #2226B0 #373BD8 #6A6EE2

Accessibility & contrast

On white

10.65
#2226B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2226B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2226B0
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2226B0#FFFFFF#000000##FFFFFF
##2226B01.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2226b0;
/* rgb */ color: rgb(34, 38, 176);
/* oklch */ color: oklch(38.5% 0.209 270.0);
Tailwind
colors: {
  custom: {
    50: '#7863c9',
    500: '#2226b0',
    950: '#000000',
  },
}
SCSS
$custom: #2226b0;
$custom-light: #7863c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2226b0",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 238.31,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.20866,
    "h": 270
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#2226B0
secondary
#C8C566
accent
#E63DEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2226B0

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

Preview Lab → · Contrast checker → · Palette generator →

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