#2227BD#2227BD

#2227BD is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.223 H 269.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2227BD
RGBrgb(34, 39, 189)
HSLhsl(238, 70%, 44%)
HSVhsv(238, 82%, 74%)
CMYKcmyk(82%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.02, 50.69, -76.99)
CIE-LCHlch(28.02, 92.18, 303.36°)
OKLaboklab(40.12% -0.0025 -0.223)
OKLCHoklch(40.12% 0.223 269.4)
XYZxyz(10.5674, 5.4640, 48.6320)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227BD #BDB822
analogous
#2274BD #2227BD #6B22BD
triadic
#2227BD #BD2227 #27BD22
tetradic
#2227BD #BD2274 #BDB822 #22BD6B
square
#2227BD #BD2274 #BDB822 #22BD6B
split-complementary
#2227BD #BD6B22 #74BD22
monochromatic
#0F1255 #191C89 #2227BD #4045DD #7377E6

Accessibility & contrast

On white

10.03
#2227BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2227BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227BD
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227BD#FFFFFF#000000##FFFFFF
##2227BD1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003ABA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2227bd;
/* rgb */ color: rgb(34, 39, 189);
/* oklch */ color: oklch(40.1% 0.223 269.4);
Tailwind
colors: {
  custom: {
    50: '#7c64d2',
    500: '#2227bd',
    950: '#000000',
  },
}
SCSS
$custom: #2227bd;
$custom-light: #7c64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2227bd",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 238.065,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40123,
    "c": 0.223,
    "h": 269.4
  },
  "luminance": 0.05465
}

Semantic roles & 50–950 ramp

primary
#2227BD
secondary
#CDCA6E
accent
#E73BEC
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2227BD

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

Preview Lab → · Contrast checker → · Palette generator →

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