#2227AF#2227AF

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

Color values

HEX#2227AF
RGBrgb(34, 39, 175)
HSLhsl(238, 67%, 41%)
HSVhsv(238, 81%, 69%)
CMYKcmyk(80.6%, 77.7%, 0%, 31.4%)
CIE-LABlab(26.41, 46.13, -71.32)
CIE-LCHlch(26.41, 84.94, 302.89°)
OKLaboklab(38.52% 0 -0.2066)
OKLCHoklch(38.52% 0.207 270)
XYZxyz(9.1204, 4.8852, 41.0114)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227AF #AFAA22
analogous
#226DAF #2227AF #6322AF
triadic
#2227AF #AF2227 #27AF22
tetradic
#2227AF #AF226D #AFAA22 #22AF63
square
#2227AF #AF226D #AFAA22 #22AF63
split-complementary
#2227AF #AF6322 #6DAF22
monochromatic
#0E1049 #181C7C #2227AF #363CD8 #696EE2

Accessibility & contrast

On white

10.62
#2227AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2227AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227AF
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227AF#FFFFFF#000000##FFFFFF
##2227AF1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.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: #2227af;
/* rgb */ color: rgb(34, 39, 175);
/* oklch */ color: oklch(38.5% 0.207 270.0);
Tailwind
colors: {
  custom: {
    50: '#7863c8',
    500: '#2227af',
    950: '#000000',
  },
}
SCSS
$custom: #2227af;
$custom-light: #7863c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2227af",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 237.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38522,
    "c": 0.20658,
    "h": 270
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#2227AF
secondary
#C8C465
accent
#E43DEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2227AF

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

Preview Lab → · Contrast checker → · Palette generator →

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