#213298#213298

#213298 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.166 H 269.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#213298
RGBrgb(33, 50, 152)
HSLhsl(231, 64%, 36%)
HSVhsv(231, 78%, 60%)
CMYKcmyk(78.3%, 67.1%, 0%, 40.4%)
CIE-LABlab(26.36, 31.22, -57.46)
CIE-LCHlch(26.36, 65.39, 298.52°)
OKLaboklab(37.76% -0.0028 -0.1663)
OKLCHoklch(37.76% 0.166 269)
XYZxyz(7.4333, 4.8707, 30.2481)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213298 #988721
analogous
#216E98 #213298 #4C2198
triadic
#213298 #982132 #329821
tetradic
#213298 #98216E #988721 #21984C
square
#213298 #98216E #988721 #21984C
split-complementary
#213298 #984C21 #6E9821
monochromatic
#0B1133 #162166 #213298 #2C43CA #596BDB

Accessibility & contrast

On white

10.64
#213298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#213298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213298
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213298#FFFFFF#000000##FFFFFF
##2132981.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #213298;
/* rgb */ color: rgb(33, 50, 152);
/* oklch */ color: oklch(37.8% 0.166 269.0);
Tailwind
colors: {
  custom: {
    50: '#716ab7',
    500: '#213298',
    950: '#000000',
  },
}
SCSS
$custom: #213298;
$custom-light: #716ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#213298",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 231.429,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37763,
    "c": 0.1663,
    "h": 269
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#213298
secondary
#BFB056
accent
#CF40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213298

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

Preview Lab → · Contrast checker → · Palette generator →

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