#213F9C#213F9C

#213F9C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.156 H 265.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#213F9C
RGBrgb(33, 63, 156)
HSLhsl(225, 65%, 37%)
HSVhsv(225, 79%, 61%)
CMYKcmyk(78.8%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.10, 24.03, -53.78)
CIE-LCHlch(30.10, 58.90, 294.07°)
OKLaboklab(40.64% -0.0111 -0.1554)
OKLCHoklch(40.64% 0.156 265.9)
XYZxyz(8.4033, 6.2777, 32.2149)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F9C #9C7E21
analogous
#217D9C #213F9C #41219C
triadic
#213F9C #9C213F #3F9C21
tetradic
#213F9C #9C217D #9C7E21 #219C41
square
#213F9C #9C217D #9C7E21 #219C41
split-complementary
#213F9C #9C4121 #7D9C21
monochromatic
#0C1637 #162B69 #213F9C #2C53CF #5B7BDC

Accessibility & contrast

On white

9.31
#213F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#213F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F9C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F9C#FFFFFF#000000##FFFFFF
##213F9C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213f9c;
/* rgb */ color: rgb(33, 63, 156);
/* oklch */ color: oklch(40.6% 0.156 265.9);
Tailwind
colors: {
  custom: {
    50: '#7173ba',
    500: '#213f9c',
    950: '#000000',
  },
}
SCSS
$custom: #213f9c;
$custom-light: #7173ba;
$custom-dark: #000000;
JSON
{
  "hex": "#213f9c",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 225.366,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40639,
    "c": 0.15575,
    "h": 265.9
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#213F9C
secondary
#C1A758
accent
#BF40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#213F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva