#221277#221277

#221277 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.157 H 277.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#221277
RGBrgb(34, 18, 119)
HSLhsl(250, 74%, 27%)
HSVhsv(250, 85%, 47%)
CMYKcmyk(71.4%, 84.9%, 0%, 53.3%)
CIE-LABlab(16.02, 38.80, -53.80)
CIE-LCHlch(16.02, 66.33, 305.80°)
OKLaboklab(29.35% 0.0212 -0.1554)
OKLCHoklch(29.35% 0.157 277.8)
XYZxyz(4.2047, 2.1042, 17.6338)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221277 #677712
analogous
#123577 #221277 #551277
triadic
#221277 #772212 #127722
tetradic
#221277 #771235 #677712 #127755
square
#221277 #771235 #677712 #127755
split-complementary
#221277 #775512 #357712
monochromatic
#08041B #130A42 #221277 #311AAC #4325DE

Accessibility & contrast

On white

14.78
#221277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#221277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221277
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221277#FFFFFF#000000##FFFFFF
##2212771.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #221277;
/* rgb */ color: rgb(34, 18, 119);
/* oklch */ color: oklch(29.3% 0.157 277.8);
Tailwind
colors: {
  custom: {
    50: '#6c549f',
    500: '#221277',
    950: '#000000',
  },
}
SCSS
$custom: #221277;
$custom-light: #6c549f;
$custom-dark: #000000;
JSON
{
  "hex": "#221277",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 249.505,
    "s": 73.723,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29349,
    "c": 0.15687,
    "h": 277.8
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#221277
secondary
#9BAD37
accent
#F037D3
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #221277

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

Preview Lab → · Contrast checker → · Palette generator →

#221277 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva