#213271#213271

#213271 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.111 H 268.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#213271
RGBrgb(33, 50, 113)
HSLhsl(227, 55%, 29%)
HSVhsv(227, 71%, 44%)
CMYKcmyk(70.8%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.99, 16.09, -38.55)
CIE-LCHlch(22.99, 41.77, 292.66°)
OKLaboklab(34.21% -0.0028 -0.1108)
OKLCHoklch(34.21% 0.111 268.6)
XYZxyz(4.7474, 3.7963, 16.1022)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213271 #716021
analogous
#215A71 #213271 #382171
triadic
#213271 #712132 #327121
tetradic
#213271 #71215A #716021 #217138
square
#213271 #71215A #716021 #217138
split-complementary
#213271 #713821 #5A7121
monochromatic
#070A18 #131D42 #213271 #2F47A0 #4460C8

Accessibility & contrast

On white

11.94
#213271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#213271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213271
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213271#FFFFFF#000000##FFFFFF
##2132711.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073B73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #213271;
/* rgb */ color: rgb(33, 50, 113);
/* oklch */ color: oklch(34.2% 0.111 268.6);
Tailwind
colors: {
  custom: {
    50: '#67699a',
    500: '#213271',
    950: '#000000',
  },
}
SCSS
$custom: #213271;
$custom-light: #67699a;
$custom-dark: #000000;
JSON
{
  "hex": "#213271",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 227.25,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34207,
    "c": 0.11082,
    "h": 268.6
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#213271
secondary
#A59149
accent
#BF4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #213271

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

Preview Lab → · Contrast checker → · Palette generator →

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