#2227A0#2227A0

#2227A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.188 H 270.8°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2227A0
RGBrgb(34, 39, 160)
HSLhsl(238, 65%, 38%)
HSVhsv(238, 79%, 63%)
CMYKcmyk(78.8%, 75.6%, 0%, 37.3%)
CIE-LABlab(24.73, 41.06, -65.04)
CIE-LCHlch(24.73, 76.91, 302.27°)
OKLaboklab(36.84% 0.0026 -0.1883)
OKLCHoklch(36.84% 0.188 270.8)
XYZxyz(7.7282, 4.3283, 33.6790)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A0 #A09B22
analogous
#2266A0 #2227A0 #5C22A0
triadic
#2227A0 #A02227 #27A022
tetradic
#2227A0 #A02266 #A09B22 #22A05C
square
#2227A0 #A02266 #A09B22 #22A05C
split-complementary
#2227A0 #A05C22 #66A022
monochromatic
#0D0E3B #171B6E #2227A0 #2D33D2 #5F64DD

Accessibility & contrast

On white

11.26
#2227A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2227A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227A0
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A0#FFFFFF#000000##FFFFFF
##2227A01.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2227a0;
/* rgb */ color: rgb(34, 39, 160);
/* oklch */ color: oklch(36.8% 0.188 270.8);
Tailwind
colors: {
  custom: {
    50: '#7463bd',
    500: '#2227a0',
    950: '#000000',
  },
}
SCSS
$custom: #2227a0;
$custom-light: #7463bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a0",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 237.619,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36844,
    "c": 0.18835,
    "h": 270.8
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#2227A0
secondary
#C2BE5C
accent
#E140E8
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2227A0

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

Preview Lab → · Contrast checker → · Palette generator →

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