#163271#163271

#163271 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.114 H 263.4°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#163271
RGBrgb(22, 50, 113)
HSLhsl(222, 67%, 26%)
HSVhsv(222, 81%, 44%)
CMYKcmyk(80.5%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.46, 14.47, -39.43)
CIE-LCHlch(22.46, 42.00, 290.15°)
OKLaboklab(33.66% -0.013 -0.1136)
OKLCHoklch(33.66% 0.114 263.4)
XYZxyz(4.4511, 3.6435, 16.0883)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#163271 #715516
analogous
#166071 #163271 #281671
triadic
#163271 #711632 #327116
tetradic
#163271 #711660 #715516 #167128
square
#163271 #711660 #715516 #167128
split-complementary
#163271 #712816 #607116
monochromatic
#050B1A #0C1B3E #163271 #2049A4 #2C60D6

Accessibility & contrast

On white

12.15
#163271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#163271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #163271
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##163271#FFFFFF#000000##FFFFFF
##1632711.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #163271;
/* rgb */ color: rgb(22, 50, 113);
/* oklch */ color: oklch(33.7% 0.114 263.4);
Tailwind
colors: {
  custom: {
    50: '#63699a',
    500: '#163271',
    950: '#000000',
  },
}
SCSS
$custom: #163271;
$custom-light: #63699a;
$custom-dark: #000000;
JSON
{
  "hex": "#163271",
  "rgb": {
    "r": 22,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 221.538,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.11436,
    "h": 263.4
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#163271
secondary
#A7863C
accent
#B53EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #163271

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

Preview Lab → · Contrast checker → · Palette generator →

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