#213172#213172

#213172 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.114 H 269.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#213172
RGBrgb(33, 49, 114)
HSLhsl(228, 55%, 29%)
HSVhsv(228, 71%, 45%)
CMYKcmyk(71.1%, 57%, 0%, 55.3%)
CIE-LABlab(22.77, 17.20, -39.53)
CIE-LCHlch(22.77, 43.11, 293.51°)
OKLaboklab(34.07% -0.0018 -0.1137)
OKLCHoklch(34.07% 0.114 269.1)
XYZxyz(4.7617, 3.7344, 16.3862)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213172 #726221
analogous
#215A72 #213172 #3A2172
triadic
#213172 #722131 #317221
tetradic
#213172 #72215A #726221 #21723A
square
#213172 #72215A #726221 #21723A
split-complementary
#213172 #723A21 #5A7221
monochromatic
#070A18 #131D43 #213172 #2F45A1 #445FC9

Accessibility & contrast

On white

12.02
#213172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#213172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213172
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213172#FFFFFF#000000##FFFFFF
##2131721.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A74
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #213172;
/* rgb */ color: rgb(33, 49, 114);
/* oklch */ color: oklch(34.1% 0.114 269.1);
Tailwind
colors: {
  custom: {
    50: '#67689b',
    500: '#213172',
    950: '#000000',
  },
}
SCSS
$custom: #213172;
$custom-light: #67689b;
$custom-dark: #000000;
JSON
{
  "hex": "#213172",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 228.148,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.1137,
    "h": 269.1
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#213172
secondary
#A59349
accent
#C149DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #213172

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

Preview Lab → · Contrast checker → · Palette generator →

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