#213397#213397

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

Color values

HEX#213397
RGBrgb(33, 51, 151)
HSLhsl(231, 64%, 36%)
HSVhsv(231, 78%, 59%)
CMYKcmyk(78.1%, 66.2%, 0%, 40.8%)
CIE-LABlab(26.52, 30.18, -56.59)
CIE-LCHlch(26.52, 64.14, 298.07°)
OKLaboklab(37.85% -0.0033 -0.1637)
OKLCHoklch(37.85% 0.164 268.8)
XYZxyz(7.3950, 4.9245, 29.8329)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213397 #978521
analogous
#216E97 #213397 #4A2197
triadic
#213397 #972133 #339721
tetradic
#213397 #97216E #978521 #21974A
square
#213397 #97216E #978521 #21974A
split-complementary
#213397 #974A21 #6E9721
monochromatic
#0B1133 #162265 #213397 #2C44C9 #586CDA

Accessibility & contrast

On white

10.58
#213397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#213397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213397
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213397#FFFFFF#000000##FFFFFF
##2133971.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #213397;
/* rgb */ color: rgb(33, 51, 151);
/* oklch */ color: oklch(37.8% 0.164 268.8);
Tailwind
colors: {
  custom: {
    50: '#706ab7',
    500: '#213397',
    950: '#000000',
  },
}
SCSS
$custom: #213397;
$custom-light: #706ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#213397",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 230.847,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37848,
    "c": 0.16377,
    "h": 268.8
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#213397
secondary
#BEAE55
accent
#CE41E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #213397

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

Preview Lab → · Contrast checker → · Palette generator →

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