#212698#212698

#212698 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.180 H 271.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#212698
RGBrgb(33, 38, 152)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(78.3%, 75%, 0%, 40.4%)
CIE-LABlab(23.59, 38.79, -62.02)
CIE-LCHlch(23.59, 73.16, 302.02°)
OKLaboklab(35.76% 0.0033 -0.1796)
OKLCHoklch(35.76% 0.18 271)
XYZxyz(6.9859, 3.9758, 30.0989)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212698 #989321
analogous
#216298 #212698 #582198
triadic
#212698 #982126 #269821
tetradic
#212698 #982162 #989321 #219858
square
#212698 #982162 #989321 #219858
split-complementary
#212698 #985821 #629821
monochromatic
#0B0D33 #161966 #212698 #2C33CA #595EDB

Accessibility & contrast

On white

11.70
#212698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212698
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212698#FFFFFF#000000##FFFFFF
##2126981.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212698;
/* rgb */ color: rgb(33, 38, 152);
/* oklch */ color: oklch(35.8% 0.180 271.0);
Tailwind
colors: {
  custom: {
    50: '#7262b8',
    500: '#212698',
    950: '#000000',
  },
}
SCSS
$custom: #212698;
$custom-light: #7262b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212698",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 237.479,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35762,
    "c": 0.17962,
    "h": 271
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#212698
secondary
#BFBA56
accent
#E040E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212698

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

Preview Lab → · Contrast checker → · Palette generator →

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